[TD-2318]<fix>: crash when 5 or more unions are used

This commit is contained in:
Bomin Zhang 2020-12-04 07:57:11 +00:00
parent 5b22fdf1a3
commit 4a8f42223d
1 changed files with 1 additions and 1 deletions

View File

@ -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;