startsWith() function of java script is not supported in IE, instead use startsWith() function of underscore string. Fixes #2347

This commit is contained in:
Murtuza Zabuawala
2017-04-25 12:00:15 +05:30
committed by Akshay Joshi
parent f718e1f49c
commit 928c0d3de8
2 changed files with 7 additions and 4 deletions

View File

@@ -3089,8 +3089,10 @@ define(
$("#btn-flash").prop('disabled', true);
if (explain_prefix != undefined && !sql.trim().toUpperCase().startsWith("EXPLAIN"))
if (explain_prefix != undefined &&
!S.startsWith(sql.trim().toUpperCase(), "EXPLAIN")) {
sql = explain_prefix + ' ' + sql;
}
self.query_start_time = new Date();
self.query = sql;