Versions
Look up a class, method, property or event

CMssqlPdoAdapter

Package system.db.schema.mssql
Inheritance class CMssqlPdoAdapter » PDO
Since 1.0.4
Version $Id: CMssqlPdoAdapter.php 823 2009-03-12 14:07:43Z qiang.xue $
This is an extension of default PDO class for mssql driver only It provides some missing functionalities of pdo driver

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() PDO
__sleep() PDO
__wakeup() PDO
beginTransaction() Begin a transaction CMssqlPdoAdapter
commit() Commit a transaction CMssqlPdoAdapter
errorCode() PDO
errorInfo() PDO
exec() PDO
getAttribute() PDO
getAvailableDrivers() PDO
lastInsertId() Get the last inserted id value CMssqlPdoAdapter
prepare() PDO
query() PDO
quote() PDO
rollBack() Rollback a transaction CMssqlPdoAdapter
setAttribute() PDO

Method Details

beginTransaction() method
public boolean beginTransaction()
{return} boolean

Begin a transaction

Is is necessary to override pdo's method, as mssql pdo drivers does not support transaction

commit() method
public boolean commit()
{return} boolean

Commit a transaction

Is is necessary to override pdo's method, as mssql pdo drivers does not support transaction

lastInsertId() method
public int lastInsertId(string $sequence=NULL)
$sequence string sequence name. Defaults to null
{return} int last inserted id

Get the last inserted id value MSSQL doesn't support sequence, so, argument is ignored

rollBack() method
public boolean rollBack()
{return} boolean

Rollback a transaction

Is is necessary to override pdo's method, ac mssql pdo drivers does not support transaction

Be the first person to leave a comment

Please to leave your comment.