summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2021-03-26 17:46:30 -0600
committerDamien Regad <dregad@mantisbt.org>2021-08-22 11:16:01 +0200
commit007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1 (patch)
treedca8fc958b245fbc476b116d5b974422a19b673d
parenta6647c384e5f8f65efb0e031a84051abff820bd5 (diff)
downloadadodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.tar.gz
adodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.tar.bz2
adodb-007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1.zip
updated docblock for beginTrans()
-rw-r--r--drivers/adodb-firebird.inc.php10
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;
}