Skip to content

Commit 00a6b47

Browse files
committed
Merge pull request #383 from avbdr/master
issue #380. reset object before exception in _prepareQuery.
2 parents 949996f + e2d4ef4 commit 00a6b47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MysqliDb.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,7 @@ protected function _buildLimit($numRows)
14691469
protected function _prepareQuery()
14701470
{
14711471
if (!$stmt = $this->mysqli()->prepare($this->_query)) {
1472+
$this->reset();
14721473
throw new Exception("Problem preparing query ($this->_query) " . $this->mysqli()->error);
14731474
}
14741475

0 commit comments

Comments
 (0)