mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
Minor alt
git-svn-id: file:///svn/phpbb/trunk@280 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
if(!defined("SQL_LAYER"))
|
if(!defined("SQL_LAYER"))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
dl('odbc.so');
|
||||||
|
|
||||||
define("SQL_LAYER","odbc");
|
define("SQL_LAYER","odbc");
|
||||||
|
|
||||||
class sql_db
|
class sql_db
|
||||||
@@ -259,14 +261,14 @@ class sql_db
|
|||||||
{
|
{
|
||||||
$query_id = $this->query_result;
|
$query_id = $this->query_result;
|
||||||
}
|
}
|
||||||
if($query_id)
|
/* if($query_id)
|
||||||
{
|
{
|
||||||
return $this->@odbc_num_rows[$query_id];
|
return $this->@odbc_num_rows[$query_id];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
function sql_numfields($query_id = 0)
|
function sql_numfields($query_id = 0)
|
||||||
{
|
{
|
||||||
@@ -437,10 +439,10 @@ class sql_db
|
|||||||
}
|
}
|
||||||
function sql_error($query_id = 0)
|
function sql_error($query_id = 0)
|
||||||
{
|
{
|
||||||
$result["code"] = @odbc_error($this->db_connect_id);
|
// $result['code'] = @odbc_error($this->db_connect_id);
|
||||||
$result["message"] = @odbc_errormsg($this->db_connect_id);
|
// $result['message'] = @odbc_errormsg($this->db_connect_id);
|
||||||
|
|
||||||
return $result;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // class sql_db
|
} // class sql_db
|
||||||
|
Reference in New Issue
Block a user