1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 04:20:32 +02:00

Updated mssql schema and basic, and added commit for remaining transactions

git-svn-id: file:///svn/phpbb/trunk@1000 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-09-07 16:58:45 +00:00
parent 7cd384c5b4
commit ed26632a7f
4 changed files with 127 additions and 94 deletions

View File

@@ -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;