From d7e15881f5fef3e86742bd6007301412424ac80f Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 29 Jan 2023 14:08:56 +0800 Subject: [PATCH] fix:length error in data block --- source/libs/parser/src/parInsertUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/parser/src/parInsertUtil.c b/source/libs/parser/src/parInsertUtil.c index 7cc93b448f..07266364c4 100644 --- a/source/libs/parser/src/parInsertUtil.c +++ b/source/libs/parser/src/parInsertUtil.c @@ -681,7 +681,7 @@ int rawBlockBindData(SQuery* query, STableMeta* pTableMeta, void* data, SVCreate tColDataAddValueByDataBlock(pCol, pColSchema->type, pColSchema->bytes, numOfRows, offset, pData); fields += sizeof(int8_t) + sizeof(int32_t); - pStart += colLength[c]; + pStart += htonl(colLength[c]); } end: -- GitLab