Properly handle EXPLAIN queries entered directly by the user in the query tool. Fixes #2287

This commit is contained in:
RAJASEKAR G 2017-04-06 09:46:42 +01:00 committed by Dave Page
parent 9ac5bf4f12
commit c758920890

View File

@ -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();