fix: null pointer when merge col data of varchar

This commit is contained in:
Cary Xu 2022-11-14 16:27:02 +08:00
parent 70b937cfac
commit 1d795f5c62
1 changed files with 3 additions and 1 deletions

View File

@ -277,7 +277,9 @@ int32_t colDataMergeCol(SColumnInfoData* pColumnInfoData, int32_t numOfRow1, int
pColumnInfoData->varmeta.allocLen = len + oldLen;
}
if (pColumnInfoData->pData && pSource->pData) { // TD-20382
memcpy(pColumnInfoData->pData + oldLen, pSource->pData, len);
}
pColumnInfoData->varmeta.length = len + oldLen;
} else {
if (finalNumOfRows > (*capacity)) {