Merge pull request #20993 from taosdata/fix/main_bugfix_wxy

fix: invalid identifier check
This commit is contained in:
Xiaoyu Wang 2023-04-20 16:11:42 +08:00 committed by GitHub
commit 7c5cc2291e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ SToken tStrGetToken(const char* str, int32_t* i, bool isPrevOptr, bool* pIgnoreC
len = tGetToken(&str[*i + t0.n + 1], &type); len = tGetToken(&str[*i + t0.n + 1], &type);
// only id and string are valid // only id and string are valid
if ((TK_NK_STRING != t0.type) && (TK_NK_ID != t0.type)) { if (((TK_NK_STRING != t0.type) && (TK_NK_ID != t0.type)) || ((TK_NK_STRING != type) && (TK_NK_ID != type))) {
t0.type = TK_NK_ILLEGAL; t0.type = TK_NK_ILLEGAL;
t0.n = 0; t0.n = 0;