Commit e29e28e0 authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #385 from avbdr/master

Obvious fix
parents 00a6b478 1502514c
...@@ -1469,8 +1469,9 @@ class MysqliDb ...@@ -1469,8 +1469,9 @@ class MysqliDb
protected function _prepareQuery() protected function _prepareQuery()
{ {
if (!$stmt = $this->mysqli()->prepare($this->_query)) { if (!$stmt = $this->mysqli()->prepare($this->_query)) {
$msg = "Problem preparing query ($this->_query) " . $this->mysqli()->error;
$this->reset(); $this->reset();
throw new Exception("Problem preparing query ($this->_query) " . $this->mysqli()->error); throw new Exception($msg);
} }
if ($this->traceEnabled) { if ($this->traceEnabled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment