fix(query): memset the resultrow info

This commit is contained in:
Haojun Liao 2023-01-04 17:29:02 +08:00
parent c7020e0b82
commit c6512b09e8
1 changed files with 2 additions and 5 deletions

View File

@ -170,15 +170,12 @@ SResultRow* getNewResultRow(SDiskbasedBuf* pResultBuf, int32_t* currentPageId, i
// set the number of rows in current disk page
SResultRow* pResultRow = (SResultRow*)((char*)pData + pData->num);
memset((char*) pResultRow, 0, interBufSize);
pResultRow->pageId = pageId;
pResultRow->offset = (int32_t)pData->num;
pResultRow->numOfRows = 0;
pResultRow->closed = false;
pResultRow->startInterp = false;
pResultRow->endInterp = false;
*currentPageId = pageId;
pData->num += interBufSize;
return pResultRow;
}