|
@@ 1509-1514 (lines=6) @@
|
| 1506 |
|
if ($query_result === true) { |
| 1507 |
|
|
| 1508 |
|
// "INSERT" || "REPLACE" |
| 1509 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1510 |
|
$insert_id = (int)$this->insert_id(); |
| 1511 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1512 |
|
|
| 1513 |
|
return $insert_id; |
| 1514 |
|
} |
| 1515 |
|
|
| 1516 |
|
// "UPDATE" || "DELETE" |
| 1517 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1517-1522 (lines=6) @@
|
| 1514 |
|
} |
| 1515 |
|
|
| 1516 |
|
// "UPDATE" || "DELETE" |
| 1517 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1518 |
|
$affected_rows = $this->affected_rows(); |
| 1519 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1520 |
|
|
| 1521 |
|
return $affected_rows; |
| 1522 |
|
} |
| 1523 |
|
|
| 1524 |
|
// log the ? query |
| 1525 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |