diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index f87ede9ced8055bb87af94425bb71c6024a1c5f7..eef2dbe7d233b7f9832050d1c724d53e6bc20ab7 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -395,6 +395,10 @@ int32_t tscToSQLCmd(SSqlObj* pSql, struct SSqlInfo* pInfo) { return TSDB_CODE_INVALID_SQL; } + strdequote(pToken->z); + strtrim(pToken->z); + pToken->n = strlen(pToken->z); + if (setMeterID(pSql, pToken) != TSDB_CODE_SUCCESS) { setErrMsg(pCmd, msg, tListLen(msg)); return TSDB_CODE_INVALID_SQL; @@ -3989,4 +3993,4 @@ int32_t parseCreateDBOptions(SCreateDBInfo* pCreateDbSql, SSqlCmd* pCmd) { } return TSDB_CODE_SUCCESS; -} \ No newline at end of file +}