diff --git a/classes/Kohana/Database/DB2.php b/classes/Kohana/Database/DB2.php index df4462a..e571769 100644 --- a/classes/Kohana/Database/DB2.php +++ b/classes/Kohana/Database/DB2.php @@ -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))