|
@@ 1607-1612 (lines=6) @@
|
| 1604 |
|
if ($query_result === true) { |
| 1605 |
|
|
| 1606 |
|
// "INSERT" || "REPLACE" |
| 1607 |
|
if (preg_match('/^\s*?(?:INSERT|REPLACE)\s+/i', $sql)) { |
| 1608 |
|
$insert_id = (int)$this->insert_id(); |
| 1609 |
|
$this->_debug->logQuery($sql, $query_duration, $insert_id); |
| 1610 |
|
|
| 1611 |
|
return $insert_id; |
| 1612 |
|
} |
| 1613 |
|
|
| 1614 |
|
// "UPDATE" || "DELETE" |
| 1615 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
|
@@ 1615-1620 (lines=6) @@
|
| 1612 |
|
} |
| 1613 |
|
|
| 1614 |
|
// "UPDATE" || "DELETE" |
| 1615 |
|
if (preg_match('/^\s*?(?:UPDATE|DELETE)\s+/i', $sql)) { |
| 1616 |
|
$affected_rows = $this->affected_rows(); |
| 1617 |
|
$this->_debug->logQuery($sql, $query_duration, $affected_rows); |
| 1618 |
|
|
| 1619 |
|
return $affected_rows; |
| 1620 |
|
} |
| 1621 |
|
|
| 1622 |
|
// log the ? query |
| 1623 |
|
$this->_debug->logQuery($sql, $query_duration, 0); |