Fixed reporting DB query error message
This commit is contained in:
parent
3afcaf7e12
commit
8f82aeb96f
@ -130,8 +130,8 @@ class Kohana_Database_DB2 extends Database {
|
||||
}
|
||||
|
||||
throw new Database_Exception(':error [ :query ]',
|
||||
array(':error' => db2_conn_errormsg($this->_connection), ':query' => $sql),
|
||||
db2_conn_error($this->_connection));
|
||||
array(':error' => db2_stmt_errormsg(), ':query' => $sql),
|
||||
db2_stmt_error());
|
||||
}
|
||||
|
||||
if (isset($benchmark))
|
||||
|
Reference in New Issue
Block a user