diff options
author | ftwbzhao <b.zhao1@gmail.com> | 2015-07-04 11:42:31 +0200 |
---|---|---|
committer | ftwbzhao <b.zhao1@gmail.com> | 2015-07-04 11:42:31 +0200 |
commit | 69befa92007cfa1c089e6b4478409809ea52faca (patch) | |
tree | e8452fc6559b1ef99bf36ed7743ca2b543c6643d /system/database | |
parent | a1170aff602317d9b6f2d5c1d5cc60d3dc82ee58 (diff) |
fix SQlite3 list_fields
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/sqlite3/sqlite3_driver.php | 2 |
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']; } |