mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Minor alt
git-svn-id: file:///svn/phpbb/trunk@280 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
fd890fb095
commit
bdaedc9afc
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue