1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 05:37:39 +02:00

MSSQL2005: used native functions for transaction

This commit is contained in:
David Grudl
2012-01-19 05:15:32 +01:00
parent c2c63615fd
commit 5aed9e7e4f

View File

@@ -150,7 +150,7 @@ class DibiMsSql2005Driver extends DibiObject implements IDibiDriver, IDibiResult
*/ */
public function begin($savepoint = NULL) public function begin($savepoint = NULL)
{ {
$this->query('BEGIN TRANSACTION'); sqlsrv_begin_transaction($this->connection);
} }
@@ -163,7 +163,7 @@ class DibiMsSql2005Driver extends DibiObject implements IDibiDriver, IDibiResult
*/ */
public function commit($savepoint = NULL) public function commit($savepoint = NULL)
{ {
$this->query('COMMIT'); sqlsrv_commit($this->connection);
} }
@@ -176,7 +176,7 @@ class DibiMsSql2005Driver extends DibiObject implements IDibiDriver, IDibiResult
*/ */
public function rollback($savepoint = NULL) public function rollback($savepoint = NULL)
{ {
$this->query('ROLLBACK'); sqlsrv_rollback($this->connection);
} }