Position of `debugInfo` call

Position of `debugInfo` call

RagnarGrootKoerkampRagnarGrootKoerkamp Posts: 48Questions: 14Answers: 1

When the _prepare method (for the mysql driver) is called with an invalid query, an error will be thrown before the query is added to the debug log. It would be better to call debugInfo at the start of this method, so that debugging also works for invalid queries.


  • allanallan Posts: 60,929Questions: 1Answers: 9,932 Site admin

    I completely concur. I've committed this change and it also will be in 1.6.2. Many thanks for this!


This discussion has been closed.