diff options
author | admin <devnull@localhost> | 2006-09-26 00:12:32 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-26 00:12:32 +0200 |
commit | ab4f61bacfa022c0c7238e9661ad9cb2ac440d95 (patch) | |
tree | d0374898fd8e6452b36728fa75030e4ab72ea35e /system/database/drivers/sqlite/sqlite_result.php | |
parent | e106318c19938c621198924ab5d292592dbb4477 (diff) |
Diffstat (limited to 'system/database/drivers/sqlite/sqlite_result.php')
-rw-r--r-- | system/database/drivers/sqlite/sqlite_result.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/system/database/drivers/sqlite/sqlite_result.php b/system/database/drivers/sqlite/sqlite_result.php index f30a8cfdf..7f48ce8aa 100644 --- a/system/database/drivers/sqlite/sqlite_result.php +++ b/system/database/drivers/sqlite/sqlite_result.php @@ -49,7 +49,28 @@ class CI_DB_sqlite_result extends CI_DB_result { { return @sqlite_num_fields($this->result_id); } - + + // -------------------------------------------------------------------- + + /** + * Fetch Field Names + * + * Generates an array of column names + * + * @access public + * @return array + */ + function field_names() + { + $field_names = array(); + for ($i = 0; $i < $this->num_fields(); $i++) + { + $Ffield_names[] = sqlite_field_name($this->result_id, $i); + } + + return $field_names; + } + // -------------------------------------------------------------------- /** |