Merge pull request #16319 from taosdata/fix/TD-18570

fix: fix stack overflow issue
This commit is contained in:
Shengliang Guan 2022-08-23 13:01:14 +08:00 committed by GitHub
commit 1009912abd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -1570,12 +1570,9 @@ int32_t qExplainGetRspFromCtx(void *ctx, SRetrieveTableRsp **pRsp) {
SColumnInfoData *pInfoData = taosArrayGet(pBlock->pDataBlock, 0);
char buf[1024] = {0};
for (int32_t i = 0; i < rowNum; ++i) {
SQueryExplainRowInfo *row = taosArrayGet(pCtx->rows, i);
varDataCopy(buf, row->buf);
ASSERT(varDataTLen(row->buf) == row->len);
colDataAppend(pInfoData, i, buf, false);
colDataAppend(pInfoData, i, row->buf, false);
}
pBlock->info.rows = rowNum;