Sources/DbSearch-postgresql.php 1 location
|
@@ 97-98 (lines=2) @@
|
| 94 |
|
), |
| 95 |
|
); |
| 96 |
|
|
| 97 |
|
if (isset($replacements[$identifier])) |
| 98 |
|
$db_string = preg_replace(array_keys($replacements[$identifier]), array_values($replacements[$identifier]), $db_string); |
| 99 |
|
if (preg_match('~^\s*INSERT\sIGNORE~i', $db_string) != 0) |
| 100 |
|
{ |
| 101 |
|
$db_string = preg_replace('~^\s*INSERT\sIGNORE~i', 'INSERT', $db_string); |
Sources/Subs-Db-postgresql.php 1 location
|
@@ 351-352 (lines=2) @@
|
| 348 |
|
), |
| 349 |
|
); |
| 350 |
|
|
| 351 |
|
if (isset($replacements[$identifier])) |
| 352 |
|
$db_string = preg_replace(array_keys($replacements[$identifier]), array_values($replacements[$identifier]), $db_string); |
| 353 |
|
|
| 354 |
|
// Limits need to be a little different. |
| 355 |
|
$db_string = preg_replace('~\sLIMIT\s(\d+|{int:.+}),\s*(\d+|{int:.+})\s*$~i', 'LIMIT $2 OFFSET $1', $db_string); |