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