fix: fix bugs of pWhere is null

This commit is contained in:
slzhou 2023-10-27 15:16:40 +08:00
parent 865b28c6bd
commit 15aedb8d8c
1 changed files with 3 additions and 1 deletions

View File

@ -3961,7 +3961,9 @@ static int32_t translateWhere(STranslateContext* pCxt, SSelectStmt* pSelect) {
if (TSDB_CODE_SUCCESS == code && pSelect->timeRange.skey > pSelect->timeRange.ekey) {
pSelect->isEmptyResult = true;
}
if (pSelect->pWhere != NULL) {
setTableVgroupsFromEqualTbnameCond(pCxt, pSelect);
}
return code;
}