diff options
author | rojaro <> | 2009-07-13 13:56:07 +0000 |
---|---|---|
committer | rojaro <> | 2009-07-13 13:56:07 +0000 |
commit | b4b2c7e5e2eadd48b344538823dcf5645939ba44 (patch) | |
tree | 7e10a68d038fe37d71f7f7a8552136cecfb38183 /framework/Db/schema/mssql/TMssqlPdoAdapter.php | |
parent | d6ef8e39d858de50107950180ea111349e4b0d6f (diff) |
- removed old schema directory
- some cleanups
Diffstat (limited to 'framework/Db/schema/mssql/TMssqlPdoAdapter.php')
-rwxr-xr-x | framework/Db/schema/mssql/TMssqlPdoAdapter.php | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/framework/Db/schema/mssql/TMssqlPdoAdapter.php b/framework/Db/schema/mssql/TMssqlPdoAdapter.php deleted file mode 100755 index 0f9a4288..00000000 --- a/framework/Db/schema/mssql/TMssqlPdoAdapter.php +++ /dev/null @@ -1,74 +0,0 @@ -<?php -/** - * TMssqlPdo class file - * - * @author Christophe Boulain <Christophe.Boulain@gmail.com> - * @link http://www.yiiframework.com/ - * @copyright Copyright © 2008-2009 Yii Software LLC - * @license http://www.yiiframework.com/license/ - */ - -/** - * This is an extension of default PDO class for mssql driver only - * It provides some missing functionalities of pdo driver - * @author Christophe Boulain <Christophe.Boulain@gmail.com> - * @version $Id$ - * @package system.db.schema.mssql - * @since 1.0.4 - */ -class TMssqlPdoAdapter extends PDO -{ - /** - * Get the last inserted id value - * MSSQL doesn't support sequence, so, argument is ignored - * - * @param string sequence name. Defaults to null - * @return int last inserted id - */ - public function lastInsertId ($sequence=NULL) - { - return $this->query('SELECT SCOPE_IDENTITY()')->fetchColumn(); - } - - /** - * Begin a transaction - * - * Is is necessary to override pdo's method, as mssql pdo drivers - * does not support transaction - * - * @return boolean - */ - public function beginTransaction () - { - $this->exec('BEGIN TRANSACTION'); - return true; - } - - /** - * Commit a transaction - * - * Is is necessary to override pdo's method, as mssql pdo drivers - * does not support transaction - * - * @return boolean - */ - public function commit () - { - $this->exec('COMMIT TRANSACTION'); - return true; - } - - /** - * Rollback a transaction - * - * Is is necessary to override pdo's method, ac mssql pdo drivers - * does not support transaction - * - * @return boolean - */ - public function rollBack () - { - $this->exec('ROLLBACK TRANSACTION'); - return true; - } -} |