mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-28 17:24:47 -06:00
Properly handle EXPLAIN queries entered directly by the user in the query tool. Fixes #2287
This commit is contained in:
parent
9ac5bf4f12
commit
c758920890
@ -3132,7 +3132,7 @@ define(
|
||||
|
||||
$("#btn-flash").prop('disabled', true);
|
||||
|
||||
if (explain_prefix != undefined)
|
||||
if (explain_prefix != undefined && !sql.trim().toUpperCase().startsWith("EXPLAIN"))
|
||||
sql = explain_prefix + ' ' + sql;
|
||||
|
||||
self.query_start_time = new Date();
|
||||
|
Loading…
Reference in New Issue
Block a user