[td-98] fix empty table in super table caused client crash.
This commit is contained in:
parent
99e0b70469
commit
32ad0c6810
|
@ -4675,8 +4675,8 @@ int32_t parseLimitClause(SQueryInfo* pQueryInfo, int32_t clauseIndex, SQuerySQL*
|
|||
}
|
||||
|
||||
// No tables included. No results generated. Query results are empty.
|
||||
if (pTableMetaInfo->pTableMeta == NULL) {
|
||||
tscTrace("%p no table in metricmeta, no output result", pSql);
|
||||
if (pTableMetaInfo->vgroupList->numOfVgroups == 0) {
|
||||
tscTrace("%p no table in super table, no output result", pSql);
|
||||
pQueryInfo->command = TSDB_SQL_RETRIEVE_EMPTY_RESULT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue