|
@@ 230-235 (lines=6) @@
|
| 227 |
|
if ($result === true) { |
| 228 |
|
|
| 229 |
|
// "INSERT" || "REPLACE" |
| 230 |
|
if (preg_match('/^\s*"?(INSERT|REPLACE)\s+/i', $this->_sql)) { |
| 231 |
|
$insert_id = (int)$this->insert_id; |
| 232 |
|
$this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $insert_id); |
| 233 |
|
|
| 234 |
|
return $insert_id; |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
// "UPDATE" || "DELETE" |
| 238 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) { |
|
@@ 238-243 (lines=6) @@
|
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
// "UPDATE" || "DELETE" |
| 238 |
|
if (preg_match('/^\s*"?(UPDATE|DELETE)\s+/i', $this->_sql)) { |
| 239 |
|
$affected_rows = (int)$this->affected_rows; |
| 240 |
|
$this->_debug->logQuery($this->_sql_with_bound_parameters, $query_duration, $affected_rows); |
| 241 |
|
|
| 242 |
|
return $affected_rows; |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
// "SELECT" |
| 246 |
|
if (preg_match('/^\s*"?(SELECT)\s+/i', $this->_sql)) { |