diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index f52a9c96c29fa8faa98819b82196edf32ea3d0ec..6f5d3401c23626ff2a97a0164f817bc4cae81147 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;