Hello !

How do I avoid exception messages getting truncated ?
For example in the exception below, I can't see the line where the excpetion
occured, not very convenient. I added in bold "truncated" to show you where
the message is cut.

Any idea ? Thank you !

Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error
in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right syntax to use near 'D.id = P.doctor_id AND P.id = 0
AND D.to_delete = 0' at line 1' in
C:\Data\websites\xyz\library\Zend\Db\Statement\Pdo.php:228 Stack trace: #0
C:\Data\websites\xyz\library\Zend\Db\Statement\Pdo.php(228):
PDOStatement->execute(Array) #1
C:\Data\websites\xyz\library\Zend\Db\Statement.php(300):
Zend_Db_Statement_Pdo->_execute(Array) #2
C:\Data\websites\dokagenda\library\Zend\Db\Adapter\Abstract.php(468):
Zend_Db_Statement->execute(Array) #3
C:\Data\websites\xyz\library\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract->query('SELECT P.* FROM...', NULL) #4
C:\Data\websites\xyz\library\Zend\Db\Adapter\Abstract.php(725):
Zend_Db_Adapter_Pdo_Abstract->query('SELECT P.* FROM...', NULL) #5
C:\Data\websites\xyz\application\models\PagesTRUNCATED. in
C:\Data\websites\xyz\library\Zend\Db\Statement\Pdo.php on line 234
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Exception-truncated-tp2269413p2269413.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to