summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite3/sqlite3_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-07-06 11:18:50 +0200
committerAndrey Andreev <narf@devilix.net>2015-07-06 11:18:50 +0200
commite917f1d16ef21df8956a34c33774f06a5c024b42 (patch)
treea59af74d4084620ab360a26a403eb2a7495364d2 /system/database/drivers/sqlite3/sqlite3_driver.php
parentc79a62c5c43c75a3dbc0af77433694340b235047 (diff)
parent5cd726abed384ce594d07cc59dcd61f613f10d49 (diff)
Merge pull request #3952 from ftwbzhao/develop
Fix SQlite3 list_fields()
Diffstat (limited to 'system/database/drivers/sqlite3/sqlite3_driver.php')
-rw-r--r--system/database/drivers/sqlite3/sqlite3_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php
index a7c6420bb..31e37de91 100644
--- a/system/database/drivers/sqlite3/sqlite3_driver.php
+++ b/system/database/drivers/sqlite3/sqlite3_driver.php
@@ -266,7 +266,7 @@ class CI_DB_sqlite3_driver extends CI_DB {
}
$this->data_cache['field_names'][$table] = array();
- foreach ($result as $row)
+ foreach ($result->result_array() as $row)
{
$this->data_cache['field_names'][$table][] = $row['name'];
}