li3_debug icon indicating copy to clipboard operation
li3_debug copied to clipboard

PDOStatement::explain()

Open diaspar opened this issue 11 years ago • 2 comments

I am getting this error after installation

Fatal error: Call to undefined method PDOStatement::explain() in /usr/local/zend/apache2/htdocs/test/libraries/li3_debug/extensions/storage/Debugger.php on line 211

diaspar avatar Jun 25 '13 01:06 diaspar

This was introduced in #1. explain() is most likely a MongoDB only method. I will look into what options are available for MySQL or whether we can just disable this functionality when not using MongoDB.

Thanks for the bug report!

leek avatar Jun 25 '13 14:06 leek

http://dev.mysql.com/doc/refman/5.0/en/explain.html

In mysql case, explain is used to obtain a query execution plan.

The symfony debug toolbar has an explain action under each executed query. Not sure if the info provided comes from the ORM abstraction (doctrine).

diaspar avatar Jun 25 '13 15:06 diaspar