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.

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

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

    Regards,
    Allan

This discussion has been closed.