Sources/DbSearch-postgresql.php 1 location
|
@@ 107-108 (lines=2) @@
|
| 104 |
|
), |
| 105 |
|
); |
| 106 |
|
|
| 107 |
|
if (isset($replacements[$identifier])) |
| 108 |
|
$db_string = preg_replace(array_keys($replacements[$identifier]), array_values($replacements[$identifier]), $db_string); |
| 109 |
|
if (preg_match('~^\s*INSERT\sIGNORE~i', $db_string) != 0) |
| 110 |
|
{ |
| 111 |
|
$db_string = preg_replace('~^\s*INSERT\sIGNORE~i', 'INSERT', $db_string); |
Sources/Subs-Db-postgresql.php 1 location
|
@@ 346-347 (lines=2) @@
|
| 343 |
|
), |
| 344 |
|
); |
| 345 |
|
|
| 346 |
|
if (isset($replacements[$identifier])) |
| 347 |
|
$db_string = preg_replace(array_keys($replacements[$identifier]), array_values($replacements[$identifier]), $db_string); |
| 348 |
|
|
| 349 |
|
// Limits need to be a little different. |
| 350 |
|
$db_string = preg_replace('~\sLIMIT\s(\d+|{int:.+}),\s*(\d+|{int:.+})\s*$~i', 'LIMIT $2 OFFSET $1', $db_string); |