From 1502514c633ee8e4d1868a42ade0971dae4b7081 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sun, 20 Dec 2015 13:45:32 +0300 Subject: [PATCH] Obvious fix --- MysqliDb.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MysqliDb.php b/MysqliDb.php index aa099b00..5988a5b9 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -1469,8 +1469,9 @@ protected function _buildLimit($numRows) protected function _prepareQuery() { if (!$stmt = $this->mysqli()->prepare($this->_query)) { + $msg = "Problem preparing query ($this->_query) " . $this->mysqli()->error; $this->reset(); - throw new Exception("Problem preparing query ($this->_query) " . $this->mysqli()->error); + throw new Exception($msg); } if ($this->traceEnabled) {