Reply to Re: PDOException : get the bad query with exception handler
Posted by Tonio on 02/20/07 14:35
So, what I do :
I extend Pdo and keep the last query in a static variable, kept up-to-
date by extending the query,and prepare method. (At minimum ;))
That is logged by the exceptionHandler when an error occurs.