I use key as the column name in the MySQL table.
Since this is reserved, it must be properly shielded for use in the query:
โฆ WHERE `key` = 'test'
Manually, this is not a problem, but I use the Zend Framework and I want it to handle the escape correctly, for example:
$table = new Application_Model_ATable(); $table->fetchRow ( $table->select()->where('key = ?','test') );
So the question is:
How to specify / remove column names using Zend_Db_Table?
source share