Bug \XF::Debugger::getDatabaseDebugInfo doesn't handle dropped tables gracefully

There is a bug in this version
X

Xon

Guest
If a query creates a table (temporary or otherwise), does some work on it, and then drops the table, when getDatabaseDebugInfo tries to run an explain on that query it will fail.

Besides not dropping tables, I think about the only way would be for the database adaptor to select explain statements when in debug mode with the _debug flag is set or something similar.

Continue reading...