diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 19:28:27 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 19:28:27 +0100 |
commit | f43bd73f6360f9d15a89527614c9ff696825ce99 (patch) | |
tree | 66d2009ccd98c7df4b3d97c86ec9e3c23156923e /system/database/drivers/oci8/oci8_result.php | |
parent | 3d9c9e6f9fed47332a094cc6a359e4f377357804 (diff) |
[ci skip] An attempt at a better solution for #5896
Diffstat (limited to 'system/database/drivers/oci8/oci8_result.php')
-rw-r--r-- | system/database/drivers/oci8/oci8_result.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/database/drivers/oci8/oci8_result.php b/system/database/drivers/oci8/oci8_result.php index cf0b33d26..0d57d9428 100644 --- a/system/database/drivers/oci8/oci8_result.php +++ b/system/database/drivers/oci8/oci8_result.php @@ -196,4 +196,19 @@ class CI_DB_oci8_result extends CI_DB_result { return $class_name; } + + // -------------------------------------------------------------------- + + /** + * Destructor + * + * Attempt to free remaining statement IDs. + * + * @see https://github.com/bcit-ci/CodeIgniter/pull/5896 + * @return void + */ + public function __destruct() + { + $this->free_result(); + } } |