|
@@ 475-480 (lines=6) @@
|
| 472 |
|
} elseif ($query_result === true) { |
| 473 |
|
|
| 474 |
|
// "INSERT" || "REPLACE" |
| 475 |
|
if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) { |
| 476 |
|
$insert_id = (int)$this->insert_id(); |
| 477 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 478 |
|
|
| 479 |
|
return $insert_id; |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
// "UPDATE" || "DELETE" |
| 483 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 483-488 (lines=6) @@
|
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
// "UPDATE" || "DELETE" |
| 483 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
| 484 |
|
$affected_rows = (int)$this->affected_rows(); |
| 485 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 486 |
|
|
| 487 |
|
return $affected_rows; |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
// log the ? query |
| 491 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |