fix: blank and double quotes

This commit is contained in:
Alex Duan 2024-10-25 14:00:32 +08:00
parent 86dbba5c8c
commit a10e6457bf
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ SWords shellCommands[] = {
// where keyword
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()",
"session(", "sliding ", "slimit ", "soffset ", "state_window(", "today() ", "union all select ",
"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;
}
if (word->end) {
if (word->end && str[strLen - 1] != ';') {
// append end ';'
char *p = taosMemoryMalloc(strLen + 8);
strcpy(p, str);