From 0a9f8347ccc20abf0e945ba5404c6c0a46c73732 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 20 Feb 2023 10:51:04 +0800 Subject: [PATCH] fix(query):suppress the syntax error in internal. --- include/common/tdatablock.h | 1 + source/common/src/tdatablock.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/common/tdatablock.h b/include/common/tdatablock.h index 86ce591b3d..75ee878ea2 100644 --- a/include/common/tdatablock.h +++ b/include/common/tdatablock.h @@ -177,6 +177,7 @@ static FORCE_INLINE void colDataSetDouble(SColumnInfoData* pColumnInfoData, uint int32_t getJsonValueLen(const char* data); int32_t colDataSetVal(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull); +int32_t colDataAppend(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull); int32_t colDataSetNItems(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, uint32_t numOfRows); int32_t colDataMergeCol(SColumnInfoData* pColumnInfoData, int32_t numOfRow1, int32_t* capacity, const SColumnInfoData* pSource, int32_t numOfRow2); diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index ebe634648d..85dccbca83 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -63,6 +63,10 @@ int32_t getJsonValueLen(const char* data) { return dataLen; } +int32_t colDataAppend(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull) { + return colDataSetVal(pColumnInfoData, rowIndex, pData, isNull); +} + int32_t colDataSetVal(SColumnInfoData* pColumnInfoData, uint32_t rowIndex, const char* pData, bool isNull) { if (isNull) { // There is a placehold for each NULL value of binary or nchar type. -- GitLab