Skip to content

Commit a36e815

Browse files
committed
query tab name editfy
1 parent 5c0f137 commit a36e815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/js/module/hiveSidebar/hiveSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ export default {
307307
this.dispatch('Workbench:pasteInEditor', value, this.node);
308308
},
309309
queryTable() {
310-
const tabName = `${this.currentAcitved.dbName}.${this.currentAcitved.name}`;
311-
const code = `select * from ${tabName} limit 100`;
310+
const tabName = `${this.currentAcitved.dbName}_${this.currentAcitved.name}`;
311+
const code = `select * from ${this.currentAcitved.dbName}.${this.currentAcitved.name} limit 100`;
312312
const filename = `${tabName}_select.hql`;
313313
const md5Path = util.md5(filename);
314314
this.dispatch('Workbench:add', {

0 commit comments

Comments
 (0)