core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 location
|
@@ 841-848 (lines=8) @@
|
| 838 |
|
/** |
| 839 |
|
* {@inheritDoc} |
| 840 |
|
*/ |
| 841 |
|
public function getSubstringExpression($value, $from, $length = null) |
| 842 |
|
{ |
| 843 |
|
if ($length === null) { |
| 844 |
|
return 'SUBSTR(' . $value . ', ' . $from . ')'; |
| 845 |
|
} |
| 846 |
|
|
| 847 |
|
return 'SUBSTR(' . $value . ', ' . $from . ', ' . $length . ')'; |
| 848 |
|
} |
| 849 |
|
|
| 850 |
|
/** |
| 851 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 104-111 (lines=8) @@
|
| 101 |
|
/** |
| 102 |
|
* {@inheritDoc} |
| 103 |
|
*/ |
| 104 |
|
public function getSubstringExpression($value, $from, $length = null) |
| 105 |
|
{ |
| 106 |
|
if ($length === null) { |
| 107 |
|
return 'SUBSTRING(' . $value . ' FROM ' . $from . ')'; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
return 'SUBSTRING(' . $value . ' FROM ' . $from . ' FOR ' . $length . ')'; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location
|
@@ 1086-1093 (lines=8) @@
|
| 1083 |
|
/** |
| 1084 |
|
* {@inheritdoc} |
| 1085 |
|
*/ |
| 1086 |
|
public function getSubstringExpression($value, $from, $length = null) |
| 1087 |
|
{ |
| 1088 |
|
if (null === $length) { |
| 1089 |
|
return 'SUBSTRING(' . $value . ', ' . $from . ')'; |
| 1090 |
|
} |
| 1091 |
|
|
| 1092 |
|
return 'SUBSTRING(' . $value . ', ' . $from . ', ' . $length . ')'; |
| 1093 |
|
} |
| 1094 |
|
|
| 1095 |
|
/** |
| 1096 |
|
* {@inheritdoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 1 location
|
@@ 121-128 (lines=8) @@
|
| 118 |
|
* |
| 119 |
|
* SQLite only supports the 2 parameter variant of this function |
| 120 |
|
*/ |
| 121 |
|
public function getSubstringExpression($value, $position, $length = null) |
| 122 |
|
{ |
| 123 |
|
if ($length !== null) { |
| 124 |
|
return 'SUBSTR(' . $value . ', ' . $position . ', ' . $length . ')'; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
return 'SUBSTR(' . $value . ', ' . $position . ', LENGTH(' . $value . '))'; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
/** |
| 131 |
|
* {@inheritDoc} |