fix: information_schema.ins_vgroups

This commit is contained in:
Xiaoyu Wang 2023-02-09 09:37:30 +08:00
parent 0a20b65f7c
commit 874dd2146a
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ static int32_t mndRetrieveVgroups(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *p
colDataAppend(pColInfo, numOfRows, (const char *)&pVgroup->isTsma, false);
pColInfo = taosArrayGet(pBlock->pDataBlock, cols++);
if (pDb->compactStartTime <= 0) {
if (pDb == NULL || pDb->compactStartTime <= 0) {
colDataAppendNULL(pColInfo, numOfRows);
} else {
colDataAppend(pColInfo, numOfRows, (const char *)&pDb->compactStartTime, false);