[eluser]flojon[/eluser]
When I use the db function list_fields on a table with dashes the tablename is not escaped and the query fails.
Code:
$this->db->list_fields('table-with-dashes');
results in the following query:
Code:
SHOW COLUMNS FROM table-with-dashes
which fails.
Expected query:
Code:
SHOW COLUMNS FROM `table-with-dashes`
This happens with CodeIgniter 1.6.3 and using bot mysql and mysqli db drivers.