2009年7月30日星期四

[fw-db] view complete sql statement on error

Hi all,

Is there a way to make stack trace to display the whole generated SQL
statement when there is an error instead just the first few characters
of it?

This is what it currently displays

#3 ... /library/Zend/Db/Adapter/Abstract.php(542):
Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `us...', Array)
#4 ... /library/Zend/Db/Table/Abstract.php(955):
Zend_Db_Adapter_Abstract->insert('user', Array)

..and I would like to see the whole update statement before sent to
the db to track what is wrong with it.

Thanks for the help!

Ari

没有评论: