From d026f93d65b05bb29be5e9b700baf8493c71bce9 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 30 Nov 2021 22:35:17 +0800 Subject: [PATCH] enable different value type of the same key in json --- src/client/src/tscSQLParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index dd4d7adc1c..0a52a4fc65 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4744,7 +4744,7 @@ static int32_t validateJsonTagExpr(tSqlExpr* pExpr, char* msgBuf) { if(!taosMbsToUcs4(pRight->value.pz, pRight->value.nLen, newData, TSDB_MAX_JSON_TAGS_LEN, &len)){ tscError("json where condition mbsToUcs4 error"); } - char* p = realloc(pRight->value.pz, len); + pRight->value.pz = realloc(pRight->value.pz, len); pRight->value.nLen = len; pRight->value.nType = TSDB_DATA_TYPE_NCHAR; memcpy(pRight->value.pz, newData, len); -- GitLab