From 11c80d49e30a3d409db2b3dbee9d674068aa0b96 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 15 Oct 2021 11:20:05 +0800 Subject: [PATCH] TD-6129 match/nmatch support for nchar --- src/tsdb/src/tsdbRead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 1e230dad49..8e11e44567 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -4088,8 +4088,8 @@ static FORCE_INLINE int32_t tsdbGetJsonTagDataFromId(void *param, int32_t id, ch *data = TABLE_NAME(pTable); } else { void* jsonData = getJsonTagValue(pTable, name, TSDB_MAX_JSON_KEY_MD5_LEN, NULL); - assert(jsonData != NULL); - jsonData += CHAR_BYTES; // jump type + // jsonData == NULL for ? operation + if(jsonData != NULL); jsonData += CHAR_BYTES; // jump type *data = jsonData; } -- GitLab