From 4a8f42223dfd5e81386d01779d960f8632267d04 Mon Sep 17 00:00:00 2001 From: Bomin Zhang Date: Fri, 4 Dec 2020 07:57:11 +0000 Subject: [PATCH] [TD-2318]: crash when 5 or more unions are used --- src/client/inc/tscUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/inc/tscUtil.h b/src/client/inc/tscUtil.h index cfcecc6582..2c8641da76 100644 --- a/src/client/inc/tscUtil.h +++ b/src/client/inc/tscUtil.h @@ -92,7 +92,7 @@ typedef struct SVgroupTableInfo { } SVgroupTableInfo; static FORCE_INLINE SQueryInfo* tscGetQueryInfoDetail(SSqlCmd* pCmd, int32_t subClauseIndex) { - assert(pCmd != NULL && subClauseIndex >= 0 && subClauseIndex < TSDB_MAX_UNION_CLAUSE); + assert(pCmd != NULL && subClauseIndex >= 0); if (pCmd->pQueryInfo == NULL || subClauseIndex >= pCmd->numOfClause) { return NULL; -- GitLab