|
@@ 483-488 (lines=6) @@
|
| 480 |
|
if ($query_result === true) { |
| 481 |
|
|
| 482 |
|
// "INSERT" || "REPLACE" |
| 483 |
|
if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) { |
| 484 |
|
$insert_id = (int)$this->insert_id(); |
| 485 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 486 |
|
|
| 487 |
|
return $insert_id; |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
// "UPDATE" || "DELETE" |
| 491 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 491-496 (lines=6) @@
|
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
// "UPDATE" || "DELETE" |
| 491 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
| 492 |
|
$affected_rows = (int)$this->affected_rows(); |
| 493 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 494 |
|
|
| 495 |
|
return $affected_rows; |
| 496 |
|
} |
| 497 |
|
|
| 498 |
|
// log the ? query |
| 499 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |