summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite3
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-03 02:25:23 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-03 02:25:23 +0100
commit80e34f9cbd722193a5bdb94f4b593ae98c10efc7 (patch)
tree5d71422853b5d6ea1470b187fdfa1d042cab978a /system/database/drivers/sqlite3
parenta92c7cdeddd9f1b46a6c8f254b2949ad047bbc21 (diff)
parent08856b8738ea4fc17b13986c9f2619383cb4a6e9 (diff)
Merge upstream branch
Diffstat (limited to 'system/database/drivers/sqlite3')
-rw-r--r--system/database/drivers/sqlite3/sqlite3_driver.php12
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'];
}
// --------------------------------------------------------------------