Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update the "in_transaction" property on commit/rollback (bug #3774)

git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@181869 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 6682632663bc66b0f2b3fd24dc3cede7d4775544 1 parent d094606
@quipo quipo authored
Showing with 4 additions and 0 deletions.
  1. +3 −0  MDB/ibase.php
  2. +1 −0  package.xml
View
3  MDB/ibase.php
@@ -316,6 +316,7 @@ function commit()
'Commit: transaction changes are being auto commited'));
}
$connection = ($this->auto_commit ? $this->connection : $this->transaction_id);
+ $this->in_transaction = false;
return @ibase_commit($connection);
}
@@ -345,6 +346,7 @@ function rollback()
return($this->raiseError(MDB_ERROR, NULL, NULL,
'Rollback: Could not rollback a pending transaction: '.@ibase_errmsg()));
}
+ $this->in_transaction = false;
return $this->_startTransaction();
}
@@ -362,6 +364,7 @@ function _startTransaction()
return($this->raiseError(MDB_ERROR, NULL, NULL,
'Could not start a new transaction: '.@ibase_errmsg()));
}
+ $this->in_transaction = true;
return MDB_OK;
}
View
1  package.xml
@@ -22,6 +22,7 @@
- setSelectedRowRange() used to return one more result than requested
- fixed bug #3770: autoCommit(false) now automatically starts a new transaction
- fixed bug #3771: commit() now uses the correct connection resource
+ - fixed bug #3774: update the "in_transaction" property on commit/rollback
<filelist>
<file role="php" baseinstalldir="/">MDB.php</file>
<file role="doc">README</file>
Please sign in to comment.
Something went wrong with that request. Please try again.