Hi,
I was wondering if it would be possible to add the SQL query to the BadQuery exception.
The problem is, writing a try-catch block for every SQL query that is send to the database
in order to know the actual SQL query that failed, is tedious. It would be much easier to
have one outer try-catch block for BadQuery and read it there. I attached a quick patch
against 3.0.6 that makes my code much neater. Is there any chance to get something similar
in the main-branch?
Thank you,
Andrej
Attachment: [text/x-patch] bad_query.diff