summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-11-25 10:41:53 +0100
committerAndrey Andreev <narf@devilix.net>2019-11-25 10:43:19 +0100
commitd44af37e883b373cac255b4881ad3eb040c85e86 (patch)
tree96f00a5fabc8180ba0f1cc6b74eba53ccf4f4bc1 /system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
parent58a3b738d014df293bac1e31fc40a37e5050f9ec (diff)
[ci skip] Merge pull request #5856 from ytetsuro/fix/oracle12.1-support-auto-increment
Enhancement oracle dbforge, auto_increment can be used when using oracle 12.1.
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_oci_driver.php')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_oci_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
index dba49585c..41f7a6485 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
@@ -142,9 +142,9 @@ class CI_DB_pdo_oci_driver extends CI_DB_pdo_driver {
}
$version_string = parent::version();
- if (preg_match('#Release\s(?<version>\d+(?:\.\d+)+)#', $version_string, $match))
+ if (preg_match('#(Release\s)?(?<version>\d+(?:\.\d+)+)#', $version_string, $match))
{
- return $this->data_cache['version'] = $match[1];
+ return $this->data_cache['version'] = $match['version'];
}
return FALSE;