mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
Merge pull request #417 from dbeaver/fix/execution-plan-empty-query
fix(plugin-sql-editor): CB-1117 add check for empty query
This commit is contained in:
+5
-1
@@ -43,8 +43,12 @@ export class SqlExecutionPlanService {
|
||||
editorState: ISqlEditorTabState,
|
||||
query: string,
|
||||
): Promise<void> {
|
||||
if (!query.trim()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!editorState.executionContext) {
|
||||
console.error('executeEditorQuery executionContext is not provided');
|
||||
console.error('executeExecutionPlan executionContext is not provided');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user