. */ Doctrine::autoload('Doctrine_Transaction'); /** * * @author Konsta Vesterinen * @author Lukas Smith (PEAR MDB2 library) * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @package Doctrine * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ */ class Doctrine_Transaction_Firebird extends Doctrine_Transaction { /** * createSavepoint * creates a new savepoint * * @param string $savepoint name of a savepoint to set * @return void */ public function createSavePoint($savepoint) { $query = 'SAVEPOINT '.$savepoint; return $this->conn->getDbh()->query($query); } /** * releaseSavePoint * releases given savepoint * * @param string $savepoint name of a savepoint to release * @return void */ public function releaseSavePoint($savepoint) { $query = 'RELEASE SAVEPOINT '.$savepoint; return $this->conn->getDbh()->query($query); } /** * rollbackSavePoint * releases given savepoint * * @param string $savepoint name of a savepoint to rollback to * @return void */ public function rollbackSavePoint($savepoint) { $query = 'ROLLBACK TO SAVEPOINT '.$savepoint; return $this->conn->getDbh()->query($query); } }