Skip to content

Commit e29e28e

Browse files
committed
Merge pull request #385 from avbdr/master
Obvious fix
2 parents 00a6b47 + 1502514 commit e29e28e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MysqliDb.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,9 @@ protected function _buildLimit($numRows)
14691469
protected function _prepareQuery()
14701470
{
14711471
if (!$stmt = $this->mysqli()->prepare($this->_query)) {
1472+
$msg = "Problem preparing query ($this->_query) " . $this->mysqli()->error;
14721473
$this->reset();
1473-
throw new Exception("Problem preparing query ($this->_query) " . $this->mysqli()->error);
1474+
throw new Exception($msg);
14741475
}
14751476

14761477
if ($this->traceEnabled) {

0 commit comments

Comments
 (0)