diff options
| author | Mark Newnham <mark@newnhams.com> | 2021-03-26 19:55:47 -0600 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-08-22 11:16:01 +0200 |
| commit | 658c862c92d9040b16fe23f718811c5245c48267 (patch) | |
| tree | a35a9931f9977d9106f1c96f91a629eedd318f84 | |
| parent | 56e591d3f5101b2a0f93d0e9a879a16ac5515f9e (diff) | |
| download | adodb-658c862c92d9040b16fe23f718811c5245c48267.tar.gz adodb-658c862c92d9040b16fe23f718811c5245c48267.tar.bz2 adodb-658c862c92d9040b16fe23f718811c5245c48267.zip | |
update docblock for rollbackTrans()
| -rw-r--r-- | drivers/adodb-firebird.inc.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/adodb-firebird.inc.php b/drivers/adodb-firebird.inc.php index ed6141be..7a00979d 100644 --- a/drivers/adodb-firebird.inc.php +++ b/drivers/adodb-firebird.inc.php @@ -265,13 +265,23 @@ class ADODB_firebird extends ADOConnection { return fbird_affected_rows( $this->_transactionID ? $this->_transactionID : $this->_connectionID ); } - - function RollbackTrans() + /** + * Rollback a smart transaction. + * + * @link https://adodb.org/dokuwiki/doku.php?id=v5:reference:connection:rollbacktrans + * + * @return bool + */ + public function rollbackTrans() { - if ($this->transOff) return true; - if ($this->transCnt) $this->transCnt -= 1; + if ($this->transOff) + return true; + if ($this->transCnt) + $this->transCnt -= 1; + $ret = false; $this->autoCommit = true; + if ($this->_transactionID) { $ret = fbird_rollback($this->_transactionID); } |
