1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

tiny fixes

git-svn-id: file:///svn/phpbb/trunk@5128 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2005-04-20 20:47:03 +00:00
parent 3dd6b0ddc3
commit 7b16107513
6 changed files with 393 additions and 153 deletions

View File

@@ -92,6 +92,11 @@ class sql_db
case 'commit':
$result = @ibase_commit();
$this->transaction = false;
if (!$result)
{
@ibase_rollback();
}
break;
case 'rollback':
@@ -273,6 +278,7 @@ class sql_db
unset($this->rowset[$query_id]);
unset($this->row[$query_id]);
$result = array();
while ($this->rowset[$query_id] = get_object_vars(@ibase_fetch_object($query_id, IBASE_TEXT)))
{
$result[] = $this->rowset[$query_id];
@@ -309,7 +315,7 @@ class sql_db
{
if (empty($this->row[$query_id]) && empty($this->rowset[$query_id]))
{
if ($this->sql_fetchrow())
if ($this->sql_fetchrow($query_id))
{
$result = $this->row[$query_id][$field];
}