Fixed reporting DB query error message

This commit is contained in:
Deon George 2015-10-09 01:47:56 +11:00
parent 3afcaf7e12
commit 8f82aeb96f

View File

@ -130,8 +130,8 @@ class Kohana_Database_DB2 extends Database {
} }
throw new Database_Exception(':error [ :query ]', throw new Database_Exception(':error [ :query ]',
array(':error' => db2_conn_errormsg($this->_connection), ':query' => $sql), array(':error' => db2_stmt_errormsg(), ':query' => $sql),
db2_conn_error($this->_connection)); db2_stmt_error());
} }
if (isset($benchmark)) if (isset($benchmark))