From 9b454bd3e7641b7b0b7ddcb809adc7430e6222de Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 17 Sep 2021 11:43:35 +0800 Subject: [PATCH] TD-6129 fix json encode error --- src/common/inc/tdataformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/inc/tdataformat.h b/src/common/inc/tdataformat.h index 54e9521469..149f90fc1f 100644 --- a/src/common/inc/tdataformat.h +++ b/src/common/inc/tdataformat.h @@ -557,8 +557,8 @@ static FORCE_INLINE int tdAddColToKVRow(SKVRowBuilder *pBuilder, int16_t colId, pBuilder->nCols++; - void *jumpType = value; - if(isJumpJsonVType) jumpType = value + CHAR_BYTES; + char *jumpType = value; + if(isJumpJsonVType) jumpType += CHAR_BYTES; int tlen = IS_VAR_DATA_TYPE(type) ? varDataTLen(jumpType) : TYPE_BYTES[type]; if (tlen > pBuilder->alloc - pBuilder->size) { while (tlen > pBuilder->alloc - pBuilder->size) { -- GitLab