feat: auto get stable after use db

This commit is contained in:
Alex Duan 2023-02-11 22:49:17 +08:00
parent 8bde21894f
commit 095a6e0f82
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,6 @@ void shellSetConn(TAOS* conn) {
varCon = conn;
// init database and stable
tireSearchWord(WT_VAR_DBNAME, "");
tireSearchWord(WT_VAR_STABLE, "");
}
// exit shell auto funciton, shell exit call once
@ -1957,6 +1956,7 @@ void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb) {
if (dealUseDB(sql)) {
// change to new db
tireSearchWord(WT_VAR_STABLE, "");
return;
}