From 344519372c1f9a38f2fc194f1a4932af239865f9 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 30 Nov 2021 23:08:04 +0800 Subject: [PATCH] enable different value type of the same key in json --- src/common/src/texpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 6384a96a96..36da381782 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -289,7 +289,7 @@ static void exprTreeToBinaryImpl(SBufferWriter* bw, tExprNode* expr) { tVariant* pVal = expr->pVal; tbufWriteUint32(bw, pVal->nType); - if (pVal->nType == TSDB_DATA_TYPE_BINARY || Val->nType == TSDB_DATA_TYPE_NCHAR) { + if (pVal->nType == TSDB_DATA_TYPE_BINARY || pVal->nType == TSDB_DATA_TYPE_NCHAR) { tbufWriteInt32(bw, pVal->nLen); tbufWrite(bw, pVal->pz, pVal->nLen); } else { -- GitLab