return boolean True on success, false on fail
* (i.e. if the database/model does not support transactions,
* or a transaction has not started).
*/
function commit(&$model) {
if (parent::commit($model)) {
if (odbc_commit($this->connection)) {
$this->__transactionStarted = false;
return true;
}
}
return false;
}
/**
* Rollback a transaction
*
* @param unknown_type $model
* @return boolean True on success, false on fail
* (i.e. if the database/model does not support transactions,
* or a transaction has not started).
*/
function rollback(&$model) {
if (parent::rollback($model)) {
$this->__transactionStarted=false
上一篇:
dbo_mysqli.php
下一篇:
年产30000吨味精厂发酵罐的设计与选型