CI 1.7.1, PostgreSQL 8.3
Hello, I’m experiencing a problem with list_fields() and the Postgres driver which I think is identified in this bug report from February:
http://codeigniter.com/bug_tracker/bug/6665/
The sequence is:
drivers/DB_driver.php - list_fields()
drivers/postgre/postgre_driver.php - _list_columns()
drivers/DB_driver.php - _protect_identifiers()
drivers/postgre/postgre_driver.php - _escape_identifiers()
and the resulting query is:
SELECT column_name FROM information_schema.columns WHERE table_name =‘“peeps”’
The double-quoting results in an empty result set, unlike the following which returns the table’s columns as intended:
SELECT column_name FROM information_schema.columns WHERE table_name =‘peeps’
I believe I can work around this a few different ways, but I’m also curious about any fix forthcoming for the problem.
Also are folks here using Postgres with CI successfully in production apps? This is the first issue I’ve encountered but I want to be sure I’m not going against the grain too much with my choice of DBMS. Are there other issues with Postgres I should be aware of (as ultimately my app needs to work with MySQL, PostgreSQL, and others)?
Thanks!