From 8f82aeb96f7326ea55069f835b907e31967ac8f6 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 9 Oct 2015 01:47:56 +1100 Subject: [PATCH] Fixed reporting DB query error message --- classes/Kohana/Database/DB2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))