fix: rows

This commit is contained in:
factosea 2025-02-25 23:18:13 +08:00
parent e91014f807
commit 36bec2c958
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ static int32_t buildRetrieveTableRsp(SSDataBlock* pBlock, int32_t numOfCols, SRe
(*pRsp)->numOfCols = htonl(numOfCols);
int32_t len = 0;
if ((*pRsp)->numOfRows > 0) {
if (pBlock->info.rows > 0) {
len = blockEncode(pBlock, (*pRsp)->data + PAYLOAD_PREFIX_LEN, dataEncodeBufSize, numOfCols);
if (len < 0) {
taosMemoryFree(*pRsp);