diff options
| author | Mark Newnham <mark@newnhams.com> | 2018-07-20 18:04:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-20 18:04:00 -0600 |
| commit | 7392afc189d734aff94dc45e564c84976ebe4665 (patch) | |
| tree | c2c8ebbcb0391c67eef7c5550b54685ca3cf821d | |
| parent | f4b96b0d62762138305624bb09f5dffd3b1e7f3d (diff) | |
| download | adodb-7392afc189d734aff94dc45e564c84976ebe4665.tar.gz adodb-7392afc189d734aff94dc45e564c84976ebe4665.tar.bz2 adodb-7392afc189d734aff94dc45e564c84976ebe4665.zip | |
Fix #143 causes problems with prepared statements in driver, see #318
The addition of the close method in the destructor of the core ADOrecordset class causes prepared statements to fail because the connection to the resource is closed too early. This fix overrides the destructor for the oracle driver which is the only one with reported issues.
| -rw-r--r-- | drivers/adodb-oci8.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/adodb-oci8.inc.php b/drivers/adodb-oci8.inc.php index 1ceec561..7ba1138e 100644 --- a/drivers/adodb-oci8.inc.php +++ b/drivers/adodb-oci8.inc.php @@ -1565,7 +1565,13 @@ class ADORecordset_oci8 extends ADORecordSet { $this->adodbFetchMode = $mode; $this->_queryID = $queryID; } - + + /** + * Overrides the core destructor method as that causes problems here + * + * @return void + */ + function __destruct() {} function Init() { |
