Propel 2 API
Class

Propel\Runtime\Adapter\MSSQL\MssqlPropelPDO

class MssqlPropelPDO extends PropelPDO

dblib doesn't support transactions so we need to add a workaround for transactions, last insert ID, and quoting

Constants

PROPEL_ATTR_CACHE_PREPARES

Attribute to use to set whether to cache prepared statements.

Properties

boolean $useDebug Whether or not the debug is enabled

Methods

integer beginTransaction()

Begin a transaction.

integer commit()

Commit a transaction.

integer rollBack()

Roll-back a transaction.

integer forceRollBack()

Rollback the whole transaction, even if this is a nested rollback and reset the nested transaction count to 0.

integer lastInsertId(string $seqname = null)

string quoteIdentifier(string $text)

boolean useQuoteIdentifier()

Details

at line 31
public integer beginTransaction()

Begin a transaction.

It is necessary to override the abstract PDO transaction functions here, as
the PDO driver for MSSQL does not support transactions.

Return Value

integer

at line 55
public integer commit()

Commit a transaction.

It is necessary to override the abstract PDO transaction functions here, as
the PDO driver for MSSQL does not support transactions.

Return Value

integer

at line 85
public integer rollBack()

Roll-back a transaction.

It is necessary to override the abstract PDO transaction functions here, as
the PDO driver for MSSQL does not support transactions.

Return Value

integer

at line 113
public integer forceRollBack()

Rollback the whole transaction, even if this is a nested rollback and reset the nested transaction count to 0.

It is necessary to override the abstract PDO transaction functions here, as
the PDO driver for MSSQL does not support transactions.

Return Value

integer

at line 138
public integer lastInsertId(string $seqname = null)

Parameters

string $seqname

Return Value

integer

at line 149
public string quoteIdentifier(string $text)

Parameters

string $text

Return Value

string

at line 157
public boolean useQuoteIdentifier()

Return Value

boolean