提交 adfdb096 编写于 作者: A Alex Duan

feat: auto fill database name and sys table name2

上级 af142546
......@@ -32,6 +32,7 @@ void shellShowOnScreen(SShellCmd* cmd);
void shellInsertChar(SShellCmd* cmd, char* c, int size);
void shellInsertStr(SShellCmd* cmd, char* str, int size);
bool appendAfterSelect(TAOS* con, SShellCmd* cmd, char* p, int32_t len);
char* tireSearchWord(int type, char* pre);
typedef struct SAutoPtr {
STire* p;
......@@ -1684,12 +1685,12 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
}
// match database
if (fillWithType(con, last, WT_VAR_DBNAME)) {
if (fillWithType(con, cmd, last, WT_VAR_DBNAME)) {
ret = true;
goto _return;
}
if (fillWithType(con, last, WT_VAR_SYSTABLE)) {
if (fillWithType(con, cmd, last, WT_VAR_SYSTABLE)) {
ret = true;
goto _return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册