From e7ec5180dfc3e3e8bdc414aca998f533e4a0e277 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Mon, 27 Dec 2021 15:37:58 +0800 Subject: [PATCH] [TD-11983](query): elapsed function second param time_unit should not contain now keyword --- src/client/src/tscSQLParser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 2501fa842d..8f88a89af6 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4910,14 +4910,14 @@ static int32_t validateNullExpr(tSqlExpr* pExpr, STableMeta* pTableMeta, int32_t if (IS_VAR_DATA_TYPE(pSchema[index].type) || pSchema[index].type == TSDB_DATA_TYPE_JSON) { return TSDB_CODE_SUCCESS; } - + char *v = strndup(pRight->exprToken.z, pRight->exprToken.n); int32_t len = strRmquote(v, pRight->exprToken.n); if (len > 0) { uint32_t type = 0; tGetToken(v, &type); - if (type == TK_NULL) { + if (type == TK_NULL) { free(v); return invalidOperationMsg(msgBuf, msg); } -- GitLab