mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
Missing transaction code ... may have caused some or all of the current PostgreSQL issues ...
git-svn-id: file:///svn/phpbb/trunk@1754 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -142,6 +142,7 @@ class sql_db
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$this->in_transaction = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->query_result = @pg_exec($this->db_connect_id, $query);
|
$this->query_result = @pg_exec($this->db_connect_id, $query);
|
||||||
@@ -172,6 +173,8 @@ class sql_db
|
|||||||
{
|
{
|
||||||
@pg_exec($this->db_connect_id, "ROLLBACK");
|
@pg_exec($this->db_connect_id, "ROLLBACK");
|
||||||
}
|
}
|
||||||
|
$this->in_transaction = FALSE;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user