|
@@ 248-253 (lines=6) @@
|
| 245 |
|
if ($result === true) { |
| 246 |
|
|
| 247 |
|
// "INSERT" || "REPLACE" |
| 248 |
|
if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $this->_sql)) { |
| 249 |
|
$insert_id = (int)$this->insert_id; |
| 250 |
|
$this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $insert_id); |
| 251 |
|
|
| 252 |
|
return $insert_id; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
// "UPDATE" || "DELETE" |
| 256 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) { |
|
@@ 256-261 (lines=6) @@
|
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
// "UPDATE" || "DELETE" |
| 256 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) { |
| 257 |
|
$affected_rows = (int)$this->affected_rows; |
| 258 |
|
$this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $affected_rows); |
| 259 |
|
|
| 260 |
|
return $affected_rows; |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
// "SELECT" |
| 264 |
|
if (preg_match('/^\s*"?(SELECT)\s+/i', $this->_sql)) { |