diff options
| author | Mark Newnham <mark@newnhams.com> | 2021-03-26 19:50:38 -0600 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-08-22 11:16:01 +0200 |
| commit | 56e591d3f5101b2a0f93d0e9a879a16ac5515f9e (patch) | |
| tree | 9a4b4657f92d1f8375bc9827153f8cd5b5a25a1e | |
| parent | 007a5e1fe69fba39c42d64f3d2bdd48bdd43dad1 (diff) | |
| download | adodb-56e591d3f5101b2a0f93d0e9a879a16ac5515f9e.tar.gz adodb-56e591d3f5101b2a0f93d0e9a879a16ac5515f9e.tar.bz2 adodb-56e591d3f5101b2a0f93d0e9a879a16ac5515f9e.zip | |
Removed the custom _execute() method
The issue regarding multiple connections see #201 appears to have been resolved
| -rw-r--r-- | drivers/adodb-firebird.inc.php | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/drivers/adodb-firebird.inc.php b/drivers/adodb-firebird.inc.php index cd9f284a..ed6141be 100644 --- a/drivers/adodb-firebird.inc.php +++ b/drivers/adodb-firebird.inc.php @@ -231,7 +231,15 @@ class ADODB_firebird extends ADOConnection { return $this->_transactionID; } - function CommitTrans($ok=true) + + /** + * Commits a transaction + * + * @param bool $ok set to false to rollback transaction, true to commit + * + * @return true/false. + */ + public function commitTrans($ok=true) { if (!$ok) { return $this->RollbackTrans(); @@ -257,22 +265,7 @@ class ADODB_firebird extends ADOConnection { return fbird_affected_rows( $this->_transactionID ? $this->_transactionID : $this->_connectionID ); } - // there are some compat problems with ADODB_COUNTRECS=false and $this->_logsql currently. - // it appears that ibase extension cannot support multiple concurrent queryid's - function _Execute($sql,$inputarr=false) { - global $ADODB_COUNTRECS; - - if ($this->_logsql) { - $savecrecs = $ADODB_COUNTRECS; - $ADODB_COUNTRECS = true; // force countrecs - $ret =& ADOConnection::_Execute($sql,$inputarr); - $ADODB_COUNTRECS = $savecrecs; - } else { - $ret = ADOConnection::_Execute($sql,$inputarr); - } - return $ret; - } - + function RollbackTrans() { if ($this->transOff) return true; |
