diff options
| author | Mark Newnham <mark@newnhams.com> | 2021-03-26 17:46:30 -0600 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-08-22 11:16:01 +0200 |
| commit | 007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1 (patch) | |
| tree | dca8fc958b245fbc476b116d5b974422a19b673d | |
| parent | a6647c384e5f8f65efb0e031a84051abff820bd5 (diff) | |
| download | adodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.tar.gz adodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.tar.bz2 adodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.zip | |
updated docblock for beginTrans()
| -rw-r--r-- | drivers/adodb-firebird.inc.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/adodb-firebird.inc.php b/drivers/adodb-firebird.inc.php index 820054a7..cd9f284a 100644 --- a/drivers/adodb-firebird.inc.php +++ b/drivers/adodb-firebird.inc.php @@ -214,11 +214,19 @@ class ADODB_firebird extends ADOConnection { return $arr; } - function BeginTrans() + /** + * Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans(). + * + * @return bool true if succeeded or false if database does not support transactions + */ + public function beginTrans() { if ($this->transOff) return true; $this->transCnt += 1; $this->autoCommit = false; + /* + * We manage the transaction mode via fbird_trans + */ $this->_transactionID = fbird_trans( $this->_transmode, $this->_connectionID ); return $this->_transactionID; } |
