aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/postgres7.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/postgres7.php')
-rw-r--r--phpBB/db/postgres7.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/db/postgres7.php b/phpBB/db/postgres7.php
index fefc1fc01d..6586869510 100644
--- a/phpBB/db/postgres7.php
+++ b/phpBB/db/postgres7.php
@@ -100,9 +100,17 @@ class sql_db
{
if($this->db_connect_id)
{
+ //
+ // Commit any remaining transactions
+ //
+ if( $this->in_transaction )
+ {
+ @pg_exec($this->db_connect_id, "COMMIT");
+ }
+
if($this->query_result)
{
- pg_freeresult($this->query_result);
+ @pg_freeresult($this->query_result);
}
$result = @pg_close($this->db_connect_id);
return $result;