Explain in the Query tool executes the query instead of explaining its plan
Describe the bug
Explain in the Query tool executes the query instead of explaining its plan - both with clicking the "E" icon and pressing the F7 button.
To Reproduce
Write some query in the Query tool.
Write one more query query in the Query tool, put a cursor inside any of these 2 queries and try to explain its plan either by clicking the куызуешму icon or pressing F7.
If the query text is selected things work properly - query plan is explained.
If there is only one query in the Query tool things work properly - query plan is explained and query isn't executed.
Expected behavior
- (must) Explain doesn't cause query execution regardless of if the query text is selected.
- (should) Explain explains plan for the "current" query regardless if its text is selected ("current" here denotes a query which will be executed by "Execute query:).
PGAdmin 9.9, Windows
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Windows 10, OSX monterey]
- pgAdmin version: [e.g. 6.15]
- Mode: [e.g Desktop or Server]
- Browser (if running in server mode): [e.g. chrome, safari]
- Package type: [e.g. RPM, DEB, Python, Container, etc.]
Additional context
Add any other context about the problem here.