Enable debug plugin and enable "Query explain" feature.
In the Debugbar, in Query tab you should be able to see Explain , near the every "select" query.
But it show empty table. @alikon comment: #25675 (comment)
The reasons is that the plugin run EXPLAIN without required params, and so database return SQL error.
joomla-cms/plugins/system/debug/debug.php
Lines 524 to 529 in e5db439
It would be easy to fix but the problem in QueryMonitor, it does not log a bound params.
https://github.com/joomla-framework/database/blob/4cda5d73eb55ac8a596f261aac08a33d658421fb/src/QueryMonitorInterface.php#L26-L28
So first need to fix QueryMonitor, then can get this issue fixed.
Labels |
Added:
?
|
Related framework issue see joomla-framework/database#214 . Thanks @Fedik .
I would set it "release blocker", because if we not fix QueryMonitor before the release, later it will be harder to fix because a backward compatibility problems.
Labels |
Added:
?
|
Labels |
Added:
J4 Issue
|
yes for me release blocker
How can a debug function be a release blocker?
A debug function is something essential for core and extension and whatever else on J4 developers.
Debugging database queries should also be possible when using prepared statements.
Agreed
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-06 09:32:31 |
Closed_By | ⇒ | Fedik | |
Labels |
Added:
?
Removed: ? |
Labels |
Removed:
?
|
@alikon What do you think? Should this be a release blocker? I think it could be one, but I am not sure.