|
@@ 1425-1430 (lines=6) @@
|
| 1422 |
|
if ($query_result === true) { |
| 1423 |
|
|
| 1424 |
|
// "INSERT" || "REPLACE" |
| 1425 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1426 |
|
$insert_id = (int)$this->insert_id(); |
| 1427 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1428 |
|
|
| 1429 |
|
return $insert_id; |
| 1430 |
|
} |
| 1431 |
|
|
| 1432 |
|
// "UPDATE" || "DELETE" |
| 1433 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1433-1438 (lines=6) @@
|
| 1430 |
|
} |
| 1431 |
|
|
| 1432 |
|
// "UPDATE" || "DELETE" |
| 1433 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1434 |
|
$affected_rows = (int)$this->affected_rows(); |
| 1435 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1436 |
|
|
| 1437 |
|
return $affected_rows; |
| 1438 |
|
} |
| 1439 |
|
|
| 1440 |
|
// log the ? query |
| 1441 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |