in reply to DBI - check erroneous statement?

Hi,

I just used to print every SQL statement to the log, along with any values that where going to be put into placeholders.

Or you could print them out in your error message.

J.C.