|
@@ 1364-1369 (lines=6) @@
|
| 1361 |
|
if ($query_result === true) { |
| 1362 |
|
|
| 1363 |
|
// "INSERT" || "REPLACE" |
| 1364 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1365 |
|
$insert_id = (int)$this->insert_id(); |
| 1366 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1367 |
|
|
| 1368 |
|
return $insert_id; |
| 1369 |
|
} |
| 1370 |
|
|
| 1371 |
|
// "UPDATE" || "DELETE" |
| 1372 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1372-1377 (lines=6) @@
|
| 1369 |
|
} |
| 1370 |
|
|
| 1371 |
|
// "UPDATE" || "DELETE" |
| 1372 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1373 |
|
$affected_rows = (int)$this->affected_rows(); |
| 1374 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1375 |
|
|
| 1376 |
|
return $affected_rows; |
| 1377 |
|
} |
| 1378 |
|
|
| 1379 |
|
// log the ? query |
| 1380 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |