mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
Some cleanup
git-svn-id: file:///svn/phpbb/trunk@104 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3fe77c8d09
commit
b1ce902c02
1 changed files with 14 additions and 11 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue