fix: blank and double quotes
This commit is contained in:
parent
86dbba5c8c
commit
a10e6457bf
|
@ -229,7 +229,7 @@ SWords shellCommands[] = {
|
||||||
|
|
||||||
// where keyword
|
// where keyword
|
||||||
char* keywords[] = {
|
char* keywords[] = {
|
||||||
"and ", "asc ", "desc ", "from ", "fill(", "limit ", "where ",
|
"where ", "and ", "asc ", "desc ", "from ", "fill(", "limit ",
|
||||||
"interval(", "order by ", "order by ", "offset ", "or ", "group by ", "now()",
|
"interval(", "order by ", "order by ", "offset ", "or ", "group by ", "now()",
|
||||||
"session(", "sliding ", "slimit ", "soffset ", "state_window(", "today() ", "union all select ",
|
"session(", "sliding ", "slimit ", "soffset ", "state_window(", "today() ", "union all select ",
|
||||||
"partition by ", "match", "nmatch ", "between ", "like ", "is null ", "is not null ",
|
"partition by ", "match", "nmatch ", "between ", "like ", "is null ", "is not null ",
|
||||||
|
@ -1330,7 +1330,7 @@ void printScreen(TAOS* con, SShellCmd* cmd, SWords* match) {
|
||||||
lastWordBytes = word->len;
|
lastWordBytes = word->len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (word->end) {
|
if (word->end && str[strLen - 1] != ';') {
|
||||||
// append end ';'
|
// append end ';'
|
||||||
char *p = taosMemoryMalloc(strLen + 8);
|
char *p = taosMemoryMalloc(strLen + 8);
|
||||||
strcpy(p, str);
|
strcpy(p, str);
|
||||||
|
|
Loading…
Reference in New Issue