Merge pull request #16319 from taosdata/fix/TD-18570
fix: fix stack overflow issue
This commit is contained in:
commit
1009912abd
|
@ -1570,12 +1570,9 @@ int32_t qExplainGetRspFromCtx(void *ctx, SRetrieveTableRsp **pRsp) {
|
||||||
|
|
||||||
SColumnInfoData *pInfoData = taosArrayGet(pBlock->pDataBlock, 0);
|
SColumnInfoData *pInfoData = taosArrayGet(pBlock->pDataBlock, 0);
|
||||||
|
|
||||||
char buf[1024] = {0};
|
|
||||||
for (int32_t i = 0; i < rowNum; ++i) {
|
for (int32_t i = 0; i < rowNum; ++i) {
|
||||||
SQueryExplainRowInfo *row = taosArrayGet(pCtx->rows, i);
|
SQueryExplainRowInfo *row = taosArrayGet(pCtx->rows, i);
|
||||||
varDataCopy(buf, row->buf);
|
colDataAppend(pInfoData, i, row->buf, false);
|
||||||
ASSERT(varDataTLen(row->buf) == row->len);
|
|
||||||
colDataAppend(pInfoData, i, buf, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pBlock->info.rows = rowNum;
|
pBlock->info.rows = rowNum;
|
||||||
|
|
Loading…
Reference in New Issue