diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index ec699408de943f228e2c0aa7057f265bc9fc446a..4811a3b35d3fc15be5af78cff8d420868637da9b 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -5427,6 +5427,7 @@ int32_t validateColumnName(char* name) { if (token.type == TK_STRING) { strdequote(token.z); + strntolower(token.z, token.z, token.n); token.n = (uint32_t)strtrim(token.z); int32_t k = tSQLGetToken(token.z, &token.type); diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index d045000e24485f27d9cbde89ff76e794d12b2c32..bad4a870d5ddfd2c96faa283ce44894022f7676b 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -1420,9 +1420,11 @@ int32_t tscValidateName(SStrToken* pToken) { char* sep = strnchr(pToken->z, TS_PATH_DELIMITER[0], pToken->n, true); if (sep == NULL) { // single part if (pToken->type == TK_STRING) { + strdequote(pToken->z); + strntolower(pToken->z, pToken->z, pToken->n); pToken->n = (uint32_t)strtrim(pToken->z); - + int len = tSQLGetToken(pToken->z, &pToken->type); // single token, validate it