From 300389f3b8dfe55dea40233d77ad0ca00c4f2762 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 16 Oct 2021 16:17:49 +0800 Subject: [PATCH] TD-6129 support null true false for json tag --- src/client/src/tscUtil.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index f1e5ad5298..4193cbf3cf 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -5292,6 +5292,14 @@ char* parseTagDatatoJson(void *p){ goto end; } cJSON_AddItemToObject(json, tagJsonKey, value); + }else if (type == TSDB_DATA_TYPE_BOOL) { + char jsonVd = *(char*)(realData); + cJSON* value = cJSON_CreateBool(jsonVd); + if (value == NULL) + { + goto end; + } + cJSON_AddItemToObject(json, tagJsonKey, value); } else{ tscError("unsupportted json value"); -- GitLab