CMssqlPdoAdapter
包 | system.db.schema.mssql |
---|---|
继承 | class CMssqlPdoAdapter » PDO |
可用自 | 1.0.4 |
版本 | $Id$ |
This is an extension of default PDO class for mssql driver only
It provides some missing functionalities of pdo driver
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
__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 | |
inTransaction() | PDO | |
lastInsertId() | Get the last inserted id value | CMssqlPdoAdapter |
prepare() | PDO | |
query() | PDO | |
quote() | PDO | |
rollBack() | Rollback a transaction | CMssqlPdoAdapter |
setAttribute() | PDO |
方法详情
beginTransaction()
方法
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()
方法
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()
方法
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()
方法
public boolean rollBack()
| ||
{return} | boolean |
Rollback a transaction
Is is necessary to override pdo's method, ac mssql pdo drivers
does not support transaction