|
@@ 1447-1452 (lines=6) @@
|
| 1444 |
|
if ($query_result === true) { |
| 1445 |
|
|
| 1446 |
|
// "INSERT" || "REPLACE" |
| 1447 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1448 |
|
$insert_id = (int)$this->insert_id(); |
| 1449 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1450 |
|
|
| 1451 |
|
return $insert_id; |
| 1452 |
|
} |
| 1453 |
|
|
| 1454 |
|
// "UPDATE" || "DELETE" |
| 1455 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1455-1460 (lines=6) @@
|
| 1452 |
|
} |
| 1453 |
|
|
| 1454 |
|
// "UPDATE" || "DELETE" |
| 1455 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1456 |
|
$affected_rows = (int)$this->affected_rows(); |
| 1457 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1458 |
|
|
| 1459 |
|
return $affected_rows; |
| 1460 |
|
} |
| 1461 |
|
|
| 1462 |
|
// log the ? query |
| 1463 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |