|
@@ 1295-1300 (lines=6) @@
|
| 1292 |
|
if ($query_result === true) { |
| 1293 |
|
|
| 1294 |
|
// "INSERT" || "REPLACE" |
| 1295 |
|
if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $sql)) { |
| 1296 |
|
$insert_id = (int)$this->insert_id(); |
| 1297 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1298 |
|
|
| 1299 |
|
return $insert_id; |
| 1300 |
|
} |
| 1301 |
|
|
| 1302 |
|
// "UPDATE" || "DELETE" |
| 1303 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1303-1308 (lines=6) @@
|
| 1300 |
|
} |
| 1301 |
|
|
| 1302 |
|
// "UPDATE" || "DELETE" |
| 1303 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $sql)) { |
| 1304 |
|
$affected_rows = (int)$this->affected_rows(); |
| 1305 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1306 |
|
|
| 1307 |
|
return $affected_rows; |
| 1308 |
|
} |
| 1309 |
|
|
| 1310 |
|
// log the ? query |
| 1311 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |