ZF-1398: Solution for running non-prepared SQL statements
The default implementation of the query() method in Zend_Db_Adapter_Abstract performs a prepare() on every SQL statement.
Some SQL statements are incompatible with prepare(). This varies by RDBMS brand and client API design, but there are usually some such statements.
For example, MySQL does not support preparing DDL or SHOW statements.
This is a feature request to add some method to Zend_Db_Adapter_Abstract to execute a SQL statement without performing a prepare(). In the case of PDO adapters, this is the exec() method of the underlying PDO object. But other database extensions have different methods to achieve this goal.