From bdaedc9afc2dc1c40aecaf5fb7caa2212449dc9f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 13 May 2001 12:13:34 +0000 Subject: [PATCH] Minor alt git-svn-id: file:///svn/phpbb/trunk@280 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/odbc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/phpBB/db/odbc.php b/phpBB/db/odbc.php index 9d50cefc71..ed0d453cc8 100644 --- a/phpBB/db/odbc.php +++ b/phpBB/db/odbc.php @@ -22,6 +22,8 @@ if(!defined("SQL_LAYER")) { +dl('odbc.so'); + define("SQL_LAYER","odbc"); class sql_db @@ -259,14 +261,14 @@ class sql_db { $query_id = $this->query_result; } - if($query_id) +/* if($query_id) { return $this->@odbc_num_rows[$query_id]; } else { return false; - } + }*/ } function sql_numfields($query_id = 0) { @@ -437,10 +439,10 @@ class sql_db } function sql_error($query_id = 0) { - $result["code"] = @odbc_error($this->db_connect_id); - $result["message"] = @odbc_errormsg($this->db_connect_id); +// $result['code'] = @odbc_error($this->db_connect_id); +// $result['message'] = @odbc_errormsg($this->db_connect_id); - return $result; + return ""; } } // class sql_db