summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-05 18:09:23 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-05 18:09:53 +0100
commit73295d264410f4d0b5ae802e77d4d6b47172f64a (patch)
treef31f173a4b0f7eab212a58e0fdc67047fcddfa15 /system/database/drivers
parent1a2651040ef701e750b1c13cd69cc70814b079d0 (diff)
[ci skip] Merge pull request #5896 from ytetsuro/patch-3
fix too many connection for oracle
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/oci8/oci8_driver.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php
index a9d75ebf2..511ef0e64 100644
--- a/system/database/drivers/oci8/oci8_driver.php
+++ b/system/database/drivers/oci8/oci8_driver.php
@@ -682,6 +682,16 @@ class CI_DB_oci8_driver extends CI_DB {
*/
protected function _close()
{
+ if (is_resource($this->curs_id))
+ {
+ oci_free_statement($this->curs_id);
+ }
+
+ if (is_resource($this->stmt_id))
+ {
+ oci_free_statement($this->stmt_id);
+ }
+
oci_close($this->conn_id);
}