Fixed an issue where Execute/Refresh button should not be disabled when we run the empty query. Fixes #6489

This commit is contained in:
Nikhil Mohite
2021-06-23 11:40:11 +05:30
committed by Akshay Joshi
parent 09d8d0f362
commit a533620684
3 changed files with 26 additions and 1 deletions

View File

@@ -56,7 +56,11 @@ class ExecuteQuery {
execute(sqlStatement, explainPlan, connect) {
// If it is an empty query, do nothing.
if (sqlStatement.length <= 0) return;
if (sqlStatement.length <= 0) {
// Enable query execution button if user execute empty query.
$('#btn-flash').prop('disabled', false);
return;
}
const self = this;
self.explainPlan = explainPlan;