feat: auto fill database name and sys table name2
This commit is contained in:
parent
af14254639
commit
adfdb0967c
|
@ -32,6 +32,7 @@ void shellShowOnScreen(SShellCmd* cmd);
|
||||||
void shellInsertChar(SShellCmd* cmd, char* c, int size);
|
void shellInsertChar(SShellCmd* cmd, char* c, int size);
|
||||||
void shellInsertStr(SShellCmd* cmd, char* str, int size);
|
void shellInsertStr(SShellCmd* cmd, char* str, int size);
|
||||||
bool appendAfterSelect(TAOS* con, SShellCmd* cmd, char* p, int32_t len);
|
bool appendAfterSelect(TAOS* con, SShellCmd* cmd, char* p, int32_t len);
|
||||||
|
char* tireSearchWord(int type, char* pre);
|
||||||
|
|
||||||
typedef struct SAutoPtr {
|
typedef struct SAutoPtr {
|
||||||
STire* p;
|
STire* p;
|
||||||
|
@ -1684,12 +1685,12 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// match database
|
// match database
|
||||||
if (fillWithType(con, last, WT_VAR_DBNAME)) {
|
if (fillWithType(con, cmd, last, WT_VAR_DBNAME)) {
|
||||||
ret = true;
|
ret = true;
|
||||||
goto _return;
|
goto _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fillWithType(con, last, WT_VAR_SYSTABLE)) {
|
if (fillWithType(con, cmd, last, WT_VAR_SYSTABLE)) {
|
||||||
ret = true;
|
ret = true;
|
||||||
goto _return;
|
goto _return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue