commit | 69befa92007cfa1c089e6b4478409809ea52faca | [log] [tgz] |
---|---|---|
author | ftwbzhao <b.zhao1@gmail.com> | Sat Jul 04 17:42:31 2015 +0800 |
committer | ftwbzhao <b.zhao1@gmail.com> | Sat Jul 04 17:42:31 2015 +0800 |
tree | e8452fc6559b1ef99bf36ed7743ca2b543c6643d | |
parent | a1170aff602317d9b6f2d5c1d5cc60d3dc82ee58 [diff] [blame] |
fix SQlite3 list_fields
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php index a7c6420..31e37de 100644 --- a/system/database/drivers/sqlite3/sqlite3_driver.php +++ b/system/database/drivers/sqlite3/sqlite3_driver.php
@@ -266,7 +266,7 @@ } $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']; }