mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
Removed set_db and added affectedrows
git-svn-id: file:///svn/phpbb/trunk@109 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -64,11 +64,6 @@ class sql_db
|
||||
//
|
||||
// Other base methods
|
||||
//
|
||||
function sql_setdb($database)
|
||||
{
|
||||
// This method does not exist in Oracle.
|
||||
return true;
|
||||
}
|
||||
function sql_close()
|
||||
{
|
||||
if($this->db_connect_id)
|
||||
@@ -149,6 +144,22 @@ class sql_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_affectedrows($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
{
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
if($query_id)
|
||||
{
|
||||
$result = @OCIRowCount($query_id);
|
||||
return $result;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function sql_numfields($query_id = 0)
|
||||
{
|
||||
if(!$query_id)
|
||||
|
Reference in New Issue
Block a user