[td-3664]<fix>:fix bug in top/bottom query.
This commit is contained in:
parent
fee4bde52a
commit
e9fe84f42a
|
@ -1159,9 +1159,10 @@ static void fillMultiRowsOfTagsVal(SQueryInfo *pQueryInfo, int32_t numOfRes, SLo
|
||||||
memset(buf, 0, (size_t)maxBufSize);
|
memset(buf, 0, (size_t)maxBufSize);
|
||||||
memcpy(buf, pCtx->pOutput, (size_t)pCtx->outputBytes);
|
memcpy(buf, pCtx->pOutput, (size_t)pCtx->outputBytes);
|
||||||
|
|
||||||
|
char* next = pCtx->pOutput;
|
||||||
for (int32_t i = 0; i < inc; ++i) {
|
for (int32_t i = 0; i < inc; ++i) {
|
||||||
pCtx->pOutput += pCtx->outputBytes;
|
next += pCtx->outputBytes;
|
||||||
memcpy(pCtx->pOutput, buf, (size_t)pCtx->outputBytes);
|
memcpy(next, buf, (size_t)pCtx->outputBytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue