diff options
author | Andrey Andreev <narf@devilix.net> | 2015-12-14 15:42:29 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-12-14 15:42:29 +0100 |
commit | 788fb4aa823179e7c4401f5384207d916697bb7e (patch) | |
tree | 551fd91834cc4f259d44d2355638552130ca2749 /system/database/drivers/pdo/subdrivers | |
parent | 97ecf2fcce8e3133e286e16de1b49612235a8dcf (diff) | |
parent | bc05b84995d5425d6bdc28c43174e70b720840ce (diff) |
Merge branch '3.0-stable' into develop
Diffstat (limited to 'system/database/drivers/pdo/subdrivers')
-rw-r--r-- | system/database/drivers/pdo/subdrivers/pdo_oci_driver.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php index d17e311f7..4791ab157 100644 --- a/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php +++ b/system/database/drivers/pdo/subdrivers/pdo_oci_driver.php @@ -130,6 +130,29 @@ class CI_DB_pdo_oci_driver extends CI_DB_pdo_driver { // -------------------------------------------------------------------- /** + * Database version number + * + * @return string + */ + public function version() + { + if (isset($this->data_cache['version'])) + { + return $this->data_cache['version']; + } + + $version_string = parent::version(); + if (preg_match('#Release\s(?<version>\d+(?:\.\d+)+)#', $version_string, $match)) + { + return $this->data_cache['version'] = $match[1]; + } + + return FALSE; + } + + // -------------------------------------------------------------------- + + /** * Show table query * * Generates a platform-specific query string so that the table names can be fetched |