Re: [fw-general] how get query from Zend_Db in Exception

2007-06-26 Thread Кононов Руслан
Thanks Bill. I used expanded class of Zend_Db for debugging requests. and use the following code : $profiler = Portal_Db_Zend::getInstance()->getProfiler(); foreach ( $profiler->getQueryProfiles() as $query ) { echo $query->getQuery() . ' ' . round( $query->getEl

RE: [fw-general] how get query from Zend_Db in Exception

2007-06-26 Thread Bill Karwin
Currently the exceptions do not provide the SQL string as part of their content. We have this as a feature request to develop at a later date. http://framework.zend.com/issues/browse/ZF-1399 In the meantime, another solution might be to enable the Zend_Db_Profiler. It can tell you the SQL state