2008-09-12 12:51:56 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
#namespace Doctrine::DBAL::Driver::PDOMsSql;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MsSql Connection implementation.
|
|
|
|
*
|
|
|
|
* @since 2.0
|
|
|
|
*/
|
2008-09-12 21:25:38 +04:00
|
|
|
class Doctrine_DBAL_Driver_PDOMsSql_Connection extends PDO implements Doctrine_DBAL_Driver_Connection
|
2008-09-12 12:51:56 +04:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Performs the rollback.
|
|
|
|
*
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
public function rollback()
|
|
|
|
{
|
|
|
|
$this->exec('ROLLBACK TRANSACTION');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Performs the commit.
|
|
|
|
*
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
public function commit()
|
|
|
|
{
|
|
|
|
$this->exec('COMMIT TRANSACTION');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Begins a database transaction.
|
|
|
|
*
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
public function beginTransaction()
|
|
|
|
{
|
|
|
|
$this->exec('BEGIN TRANSACTION');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|