diff options
Diffstat (limited to 'system/database/drivers/sqlite3')
-rw-r--r-- | system/database/drivers/sqlite3/sqlite3_driver.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php index 2af973875..0db366eb3 100644 --- a/system/database/drivers/sqlite3/sqlite3_driver.php +++ b/system/database/drivers/sqlite3/sqlite3_driver.php @@ -120,13 +120,19 @@ class CI_DB_sqlite3_driver extends CI_DB { // -------------------------------------------------------------------- /** - * Version number query string + * Database version number * * @return string */ - protected function _version() + public function version() { - return implode(' (', $this->conn_id->version()).')'; + if (isset($this->data_cache['version'])) + { + return $this->data_cache['version']; + } + + $version = $this->conn_id->version(); + return $this->data_cache['version'] = $version['versionString']; } // -------------------------------------------------------------------- |