From 57e04b9e96ca94f8046e3e3e2f52f471c854995d Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 10 Dec 2021 20:19:37 +0800 Subject: [PATCH] fix error, there is a core dump if tag equals a long num in where condition like where tag=99999999999999999999 --- src/client/src/tscSQLParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index f52a9c96c2..6f5d3401c2 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -9821,7 +9821,7 @@ int32_t exprTreeFromSqlExpr(SSqlCmd* pCmd, tExprNode **pExpr, const tSqlExpr* pS assert(pSqlExpr->pRight == NULL); if (pSqlExpr->type == SQL_NODE_VALUE) { - if(!isValidDataType(pSqlExpr->value.nType)){ + if(pSqlExpr->value.nType == -1){ return TSDB_CODE_TSC_INVALID_VALUE; } int32_t ret = TSDB_CODE_SUCCESS; -- GitLab