From 21838d03d7d9c2a0b8356caa57fa01b72847f3c1 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 bc2efb6149..4ed92b981a 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4755,9 +4755,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