From 135d2673d6d5e8ea255064c0c70f937615a51aa3 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 25 Jul 2022 14:50:13 +0800 Subject: [PATCH] fix: add data len for multiple rows --- source/common/src/tdatablock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index f64a0df36f..f0b5de9838 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -1878,7 +1878,7 @@ int32_t buildSubmitReqFromDataBlock(SSubmitReq** pReq, const SArray* pDataBlocks msgLen += sizeof(SSubmitBlk); int32_t dataLen = 0; for (int32_t j = 0; j < rows; ++j) { // iterate by row - tdSRowResetBuf(&rb, POINTER_SHIFT(pDataBuf, msgLen)); // set row buf + tdSRowResetBuf(&rb, POINTER_SHIFT(pDataBuf, msgLen + dataLen)); // set row buf bool isStartKey = false; int32_t offset = 0; for (int32_t k = 0; k < colNum; ++k) { // iterate by column -- GitLab