core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DB2Platform.php 1 location
|
@@ 829-836 (lines=8) @@
|
| 826 |
|
/** |
| 827 |
|
* {@inheritDoc} |
| 828 |
|
*/ |
| 829 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 830 |
|
{ |
| 831 |
|
if ($startPos == false) { |
| 832 |
|
return 'LOCATE(' . $substr . ', ' . $str . ')'; |
| 833 |
|
} |
| 834 |
|
|
| 835 |
|
return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; |
| 836 |
|
} |
| 837 |
|
|
| 838 |
|
/** |
| 839 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location
|
@@ 613-620 (lines=8) @@
|
| 610 |
|
/** |
| 611 |
|
* {@inheritDoc} |
| 612 |
|
*/ |
| 613 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 614 |
|
{ |
| 615 |
|
if ($startPos == false) { |
| 616 |
|
return 'LOCATE(' . $substr . ', ' . $str . ')'; |
| 617 |
|
} |
| 618 |
|
|
| 619 |
|
return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; |
| 620 |
|
} |
| 621 |
|
|
| 622 |
|
/** |
| 623 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location
|
@@ 113-120 (lines=8) @@
|
| 110 |
|
/** |
| 111 |
|
* {@inheritDoc} |
| 112 |
|
*/ |
| 113 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 114 |
|
{ |
| 115 |
|
if ($startPos == false) { |
| 116 |
|
return 'LOCATE(' . $substr . ', ' . $str . ')'; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
return 'LOCATE(' . $substr . ', ' . $str . ', '.$startPos.')'; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location
|
@@ 100-107 (lines=8) @@
|
| 97 |
|
/** |
| 98 |
|
* {@inheritDoc} |
| 99 |
|
*/ |
| 100 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 101 |
|
{ |
| 102 |
|
if ($startPos == false) { |
| 103 |
|
return 'INSTR('.$str.', '.$substr.')'; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
return 'INSTR('.$str.', '.$substr.', '.$startPos.')'; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
/** |
| 110 |
|
* {@inheritDoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location
|
@@ 971-978 (lines=8) @@
|
| 968 |
|
/** |
| 969 |
|
* {@inheritdoc} |
| 970 |
|
*/ |
| 971 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 972 |
|
{ |
| 973 |
|
if ($startPos == false) { |
| 974 |
|
return 'LOCATE(' . $str . ', ' . $substr . ')'; |
| 975 |
|
} |
| 976 |
|
|
| 977 |
|
return 'LOCATE(' . $str . ', ' . $substr . ', ' . $startPos . ')'; |
| 978 |
|
} |
| 979 |
|
|
| 980 |
|
/** |
| 981 |
|
* {@inheritdoc} |
core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php 1 location
|
@@ 133-140 (lines=8) @@
|
| 130 |
|
/** |
| 131 |
|
* {@inheritDoc} |
| 132 |
|
*/ |
| 133 |
|
public function getLocateExpression($str, $substr, $startPos = false) |
| 134 |
|
{ |
| 135 |
|
if ($startPos == false) { |
| 136 |
|
return 'LOCATE('.$str.', '.$substr.')'; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
return 'LOCATE('.$str.', '.$substr.', '.$startPos.')'; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
/** |
| 143 |
|
* {@inheritdoc} |