aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/postgres7.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-07 16:58:45 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-07 16:58:45 +0000
commited26632a7facb458ae2ae08eb58cca6cd0cc7a16 (patch)
treec95903785a44f52c3388913aec7b045ebdf6fc9d /phpBB/db/postgres7.php
parent7cd384c5b47717870af7f49c1dfe5b7123445b4b (diff)
downloadforums-ed26632a7facb458ae2ae08eb58cca6cd0cc7a16.tar
forums-ed26632a7facb458ae2ae08eb58cca6cd0cc7a16.tar.gz
forums-ed26632a7facb458ae2ae08eb58cca6cd0cc7a16.tar.bz2
forums-ed26632a7facb458ae2ae08eb58cca6cd0cc7a16.tar.xz
forums-ed26632a7facb458ae2ae08eb58cca6cd0cc7a16.zip
Updated mssql schema and basic, and added commit for remaining transactions
git-svn-id: file:///svn/phpbb/trunk@1000 89ea8834-ac86-4346-8a33-228a782c2dd0
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;