From d6c5dc3d098b1c25ea4b1e684ba7ef6e91c28530 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Mon, 17 Jan 2022 10:11:02 +0800 Subject: [PATCH] [TD-12945](query): taos shell crash when constant comparison cause crash --- src/client/src/tscSQLParser.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 40b62cd348..656bc0fe22 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4756,9 +4756,6 @@ static int32_t validateSQLExprItem(SSqlCmd* pCmd, tSqlExpr* pExpr, return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3); } - if (pExpr->tokenId == TK_STRING) { - } - if (pExpr->type == SQL_NODE_VALUE) { *type = SQLEXPR_TYPE_VALUE; } -- GitLab