本文整理汇总了PHP中ibase_rollback函数的典型用法代码示例。如果您正苦于以下问题:PHP ibase_rollback函数的具体用法?PHP ibase_rollback怎么用?PHP ibase_rollback使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ibase_rollback函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gcms_rollback
function gcms_rollback()
{
global $gcms_trans_id;
if ($gcms_trans_id) {
ibase_rollback($gcms_trans_id);
}
$gcms_trans_id = false;
}
示例2: rollback
public function rollback()
{
if (ibase_rollback($this->connection)) {
$this->autoCommit = true;
} else {
throw new Sabel_Db_Exception_Driver(ibase_errmsg());
}
}
示例3: _sql_transaction
/**
* SQL Transaction
* @access private
*/
function _sql_transaction($status = 'begin')
{
switch ($status) {
case 'begin':
return true;
break;
case 'commit':
return @ibase_commit();
break;
case 'rollback':
return @ibase_rollback();
break;
}
return true;
}
示例4: sql_transaction
function sql_transaction($status = 'begin')
{
switch ($status) {
case 'begin':
$this->transaction = true;
break;
case 'commit':
$result = @ibase_commit();
$this->transaction = false;
if (!$result) {
@ibase_rollback();
}
break;
case 'rollback':
$result = @ibase_rollback();
$this->transaction = false;
break;
default:
$result = true;
}
return $result;
}
示例5: transRollback
public function transRollback()
{
return ibase_rollback($this->ibase_trans);
}
示例6: _trans_rollback
/**
* Rollback Transaction.
*
* @return bool
*/
protected function _trans_rollback()
{
if (ibase_rollback($this->_ibase_trans)) {
$this->_ibase_trans = null;
return true;
}
return false;
}
示例7: commit
public function commit()
{
if (!$this->trans) {
$this->result = ibase_commit($this->connection);
} else {
$this->result = ibase_rollback($this->trans);
$this->trans = null;
}
if (!$this->result) {
throw new Exception(ibase_errmsg());
}
}
示例8: RollbackTransaction
function RollbackTransaction($intTrans)
{
if ($this->intDebug) {
echo "Rolling back transaction...\t <br>";
}
$this->intTrans = ibase_rollback($this->intTrans);
$this->intTransStatus--;
return $this->intQuery;
}
示例9: rollback
/**
* Reverts the current transaction
*
* @return int DB_OK on success. A DB_Error object on failure.
*/
function rollback()
{
return @ibase_rollback($this->connection);
}
示例10: rollback
/**
+----------------------------------------------------------
* 事务回滚
+----------------------------------------------------------
* @access public
+----------------------------------------------------------
* @return boolen
+----------------------------------------------------------
* @throws ThinkExecption
+----------------------------------------------------------
*/
public function rollback()
{
if ($this->transTimes > 0) {
$result = ibase_rollback($this->_linkID);
$this->transTimes = 0;
if (!$result) {
throw_exception($this->error());
}
}
return true;
}
示例11: trans_rollback
/**
* Rollback Transaction
*
* @return bool
*/
public function trans_rollback()
{
// When transactions are nested we only begin/commit/rollback the outermost ones
if (!$this->trans_enabled or $this->_trans_depth > 0) {
return TRUE;
}
return ibase_rollback($this->_ibase_trans);
}
示例12: rollback
/**
* 事务回滚
* @access public
* @return boolen
*/
public function rollback()
{
if ($this->transTimes > 0) {
$result = ibase_rollback($this->_linkID);
$this->transTimes = 0;
if (!$result) {
$this->error();
return false;
}
}
return true;
}
示例13: array
if ($_REQUEST['spt'] == '') {
$exception = array('spt_id', 'nama_kegiatan');
$other_request = array('pendataan_id' => $ID_HEADER, 'pendataan_no' => $no_spt, 'jenis_pendataan' => 'LISTRIK');
} else {
$exception = array('nama_kegiatan');
$other_request = array('pendataan_id' => $ID_HEADER, 'pendataan_no' => $no_spt, 'jenis_pendataan' => 'LISTRIK', 'spt_id' => $_REQUEST['spt']);
}
ibase_trans();
$a = $fbird->FBInsert('pendataan_spt', $other_request, $exception);
unset($exception);
unset($other_request);
if ($a) {
$ID_CONTENT = $fbird->setGenerator('GEN_PENDATAAN_LISTRIK');
$exception = array();
$other_request = array('listrik_id' => $ID_CONTENT, 'pendataan_id' => $ID_HEADER, 'id_rekening' => $_REQUEST['rekening']);
$b = $fbird->FBInsert('pendataan_listrik', $other_request, $exception);
unset($exception);
unset($other_request);
if ($b) {
ibase_commit();
echo 'Data Telah Tersimpan';
} else {
ibase_rollback();
echo 'Gagal Di Content';
}
} else {
ibase_rollback();
echo 'Gagal d Header ';
}
}
}
示例14: trans
function trans($action, $transID = null)
{
//action = begin, commit oder rollback
if ($action == 'begin') {
$this->transID = ibase_trans($this->linkId);
return $this->transID;
}
if ($action == 'commit' and !empty($this->transID)) {
ibase_commit($this->linkId, $this->transID);
}
if ($action == 'rollback') {
ibase_rollback($this->linkId, $this->transID);
}
}
示例15: rollbackTransacao
protected function rollbackTransacao($transacao) {
return ibase_rollback($transacao);
}