Some cleanup

git-svn-id: file:///svn/phpbb/trunk@104 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-03-16 22:49:23 +00:00
parent 3fe77c8d09
commit b1ce902c02

View file

@ -110,13 +110,12 @@ class sql_db
$row_offset = 0; $row_offset = 0;
$num_rows = $limits[2]; $num_rows = $limits[2];
} }
}
$this->query_result = OCIParse($this->db_connect_id, $query); $this->query_result = OCIParse($this->db_connect_id, $query);
OCIExecute($this->query_result); $success = OCIExecute($this->query_result);
} }
} if($success)
if($this->query_result)
{ {
unset($this->row[$this->query_result]); unset($this->row[$this->query_result]);
unset($this->rowset[$this->query_result]); unset($this->rowset[$this->query_result]);
@ -177,7 +176,7 @@ class sql_db
} }
if($query_id) if($query_id)
{ {
$result = OCIColumnName($query_id, $offset); $result = strtolower(OCIColumnName($query_id, $offset));
return $result; return $result;
} }
else else
@ -339,7 +338,11 @@ class sql_db
} }
function sql_error($query_id = 0) function sql_error($query_id = 0)
{ {
$result = OCIError($this->db_connect_id); if(!$query_id)
{
$query_id = $this->query_result;
}
$result = OCIError($query_id);
return $result; return $result;
} }