From ed26632a7facb458ae2ae08eb58cca6cd0cc7a16 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 7 Sep 2001 16:58:45 +0000 Subject: Updated mssql schema and basic, and added commit for remaining transactions git-svn-id: file:///svn/phpbb/trunk@1000 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/postgres7.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'phpBB/db/postgres7.php') 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; -- cgit v1.2.1