From e480a792cd01289e0e94fb19fee93106f713ec58 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 15 Oct 2021 21:06:23 +0800 Subject: [PATCH] TD-6129 support null true false for json tag --- src/tsdb/src/tsdbRead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index f15a53f6f3..904ccd37d6 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -4089,7 +4089,7 @@ static FORCE_INLINE int32_t tsdbGetJsonTagDataFromId(void *param, int32_t id, ch } else { int16_t colId = 0; void* jsonData = getJsonTagValue(pTable, name, TSDB_MAX_JSON_KEY_MD5_LEN, &colId); - if(colId == id + 2){ // if find json tag is NULL + if(colId == id + 1){ // if find json tag is NULL if(jsonData != NULL) *data = NULL; else *data = pTable; return TSDB_CODE_SUCCESS; -- GitLab