Commit 179838e3 authored by Laurent's avatar Laurent
Browse files

Add select query into error message on failure

parent dae6634a
......@@ -445,7 +445,7 @@ abstract class Zend_Db_Adapter_Abstract
function() use ($sql) {
$result = $this->getConnection()->query($sql);
if (false === $result)
throw new Zend_Db_Exception($this->getConnection()->error,
throw new Zend_Db_Exception($this->getConnection()->error . ': ' . $sql,
return $result;
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