From c7188637f17abf852aa2caca758616d14f783384 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 10 Jun 2021 22:16:31 +0800 Subject: [PATCH] [TD-4614]fix in operator bug --- src/client/src/tscSQLParser.c | 6 +----- src/inc/taosdef.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index b5f37e4d0a..2acb7deeb5 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4552,11 +4552,7 @@ static int32_t validateTagCondExpr(SSqlCmd* pCmd, tExprNode *p) { free(tmp); } else { double tmp; - if (p->_node.optr == TSDB_RELATION_IN) { - retVal = validateParamOfRelationIn(vVariant, schemaType); - } else { - retVal = tVariantDump(vVariant, (char*)&tmp, schemaType, false); - } + retVal = tVariantDump(vVariant, (char*)&tmp, schemaType, false); } if (retVal != TSDB_CODE_SUCCESS) { diff --git a/src/inc/taosdef.h b/src/inc/taosdef.h index e6eec73681..dac2dc84b6 100644 --- a/src/inc/taosdef.h +++ b/src/inc/taosdef.h @@ -166,7 +166,7 @@ do { \ #define TSDB_BINARY_OP_REMAINDER 34 -#define IS_RELATION_OPTR(op) (((op) >= TSDB_RELATION_LESS) && ((op) <= TSDB_RELATION_IN)) +#define IS_RELATION_OPTR(op) (((op) >= TSDB_RELATION_LESS) && ((op) < TSDB_RELATION_IN)) #define IS_ARITHMETIC_OPTR(op) (((op) >= TSDB_BINARY_OP_ADD) && ((op) <= TSDB_BINARY_OP_REMAINDER)) #define TS_PATH_DELIMITER_LEN 1 -- GitLab