summaryrefslogtreecommitdiff
path: root/framework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-20 14:26:39 +0000
committerctrlaltca@gmail.com <>2011-06-20 14:26:39 +0000
commitd4b19712c271c3bf9d16909768c4bd84d617afd5 (patch)
tree103fb4f57818c7eaf2a9591d237299ea146196fd /framework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php
parenta57ead00a69cd5240dd7549fa3a7da8d4e717749 (diff)
killed the experimental activecontrols implementation backported from yii
Diffstat (limited to 'framework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php')
-rwxr-xr-xframework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php74
1 files changed, 0 insertions, 74 deletions
diff --git a/framework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php b/framework/Testing/Data/Schema/mssql/TMssqlPdoAdapter.php
deleted file mode 100755
index 6f8777dd..00000000
--- a/framework/Testing/Data/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 &copy; 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: TMssqlPdoAdapter.php 2679 2009-06-15 07:49:42Z Christophe.Boulain $
- * @package System.Testing.Data.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;
- }
-}