|
@@ 1338-1343 (lines=6) @@
|
| 1335 |
|
if ($query_result === true) { |
| 1336 |
|
|
| 1337 |
|
// "INSERT" || "REPLACE" |
| 1338 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1339 |
|
$insert_id = (int)$this->insert_id(); |
| 1340 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1341 |
|
|
| 1342 |
|
return $insert_id; |
| 1343 |
|
} |
| 1344 |
|
|
| 1345 |
|
// "UPDATE" || "DELETE" |
| 1346 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1346-1351 (lines=6) @@
|
| 1343 |
|
} |
| 1344 |
|
|
| 1345 |
|
// "UPDATE" || "DELETE" |
| 1346 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1347 |
|
$affected_rows = (int)$this->affected_rows(); |
| 1348 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1349 |
|
|
| 1350 |
|
return $affected_rows; |
| 1351 |
|
} |
| 1352 |
|
|
| 1353 |
|
// log the ? query |
| 1354 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |