diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index fcf0d247f1..9ea6626e22 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -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; }