Provide debugging info when SQL Error occurs
quasar-kyle-2 opened this issue · 0 comments
quasar-kyle-2 commented
Currently, when there is a syntax error the error is printed but not the query that caused it. Further, there is no way to detect that there was a syntax error because it results in an empty Array, which happens for valid SQL as well. That leaves us with no way to know where in our program the error occurred, making debugging extremely difficult in a program with thousands of queries.
The least intrusive fix would be simply to print the query whenever printing "SQL Error".