aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-08-24 16:36:23 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-08-24 16:36:23 +0000
commit445a0631e56519c210ac00dc2a8fcb83f7c6ec81 (patch)
tree1fea3b17b673b976fdb9fd7d739d346827daf90e /phpBB/includes/db
parent72d67ffc3816ed87222c1834f1420844abb5ce26 (diff)
downloadforums-445a0631e56519c210ac00dc2a8fcb83f7c6ec81.tar
forums-445a0631e56519c210ac00dc2a8fcb83f7c6ec81.tar.gz
forums-445a0631e56519c210ac00dc2a8fcb83f7c6ec81.tar.bz2
forums-445a0631e56519c210ac00dc2a8fcb83f7c6ec81.tar.xz
forums-445a0631e56519c210ac00dc2a8fcb83f7c6ec81.zip
patch by david for #14182
git-svn-id: file:///svn/phpbb/trunk@8066 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/mssql_odbc.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/phpBB/includes/db/mssql_odbc.php b/phpBB/includes/db/mssql_odbc.php
index d3014f0e13..72a424f46d 100644
--- a/phpBB/includes/db/mssql_odbc.php
+++ b/phpBB/includes/db/mssql_odbc.php
@@ -102,19 +102,15 @@ class dbal_mssql_odbc extends dbal
switch ($status)
{
case 'begin':
- return @odbc_autocommit($this->db_connect_id, false);
+ return @odbc_exec($this->db_connect_id, 'BEGIN TRANSACTION');
break;
case 'commit':
- $result = @odbc_commit($this->db_connect_id);
- @odbc_autocommit($this->db_connect_id, true);
- return $result;
+ return @odbc_exec($this->db_connect_id, 'COMMIT TRANSACTION');
break;
case 'rollback':
- $result = @odbc_rollback($this->db_connect_id);
- @odbc_autocommit($this->db_connect_id, true);
- return $result;
+ return @odbc_exec($this->db_connect_id, 'ROLLBACK TRANSACTION');
break;
}