Skip to content

Commit

Permalink
add replace
Browse files Browse the repository at this point in the history
  • Loading branch information
michabbb committed Jan 7, 2019
1 parent 2ecae1d commit c0dec29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MySQLiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function query($sql, array $params = []) {
/**
* @see https://secure.php.net/manual/en/mysqli-stmt.result-metadata.php#97338
*/
preg_match('/^\s?(insert|update|delete|alter|drop|rename|modify|truncate)\s/i', $sql, $matches, PREG_OFFSET_CAPTURE, 0);
preg_match('/^\s?(insert|update|delete|alter|drop|rename|modify|truncate|replace)\s/i', $sql, $matches, PREG_OFFSET_CAPTURE, 0);
if (!count($matches)) {
$ResponseObj->state = false;
$ResponseObj->error = 'result_metadata returned false';
Expand Down

0 comments on commit c0dec29

Please sign in to comment.