views:

51

answers:

1

How to output sql statement right before it's launched?

To check all placed data inside prepared statement.

+2  A: 

Zend_Db doesn't have a mechanism itself to output the sql statements that it generates. What you can do is modify the public method "query" in Zend/Db/Adapter/Abstract.php(line 445 in 1.10.6) to output the $sql local variable. The query method is called by both the update and insert methods.

Antonio Haley
Thanks i'll try it.
Beck