From f8dfeb70881f81c91867724b3811958ef61dcaeb Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 21 Sep 2021 16:55:41 +0800 Subject: [PATCH] TD-6129 add json type check --- src/client/src/tscUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 0f9e33991d..25c0db001f 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -5234,7 +5234,7 @@ end: } int parseJsontoTagData(char* json, SKVRowBuilder* kvRowBuilder, char* errMsg, int16_t startColId){ - cJSON *root = cJSON_Parse(json->pz); + cJSON *root = cJSON_Parse(json); if (root == NULL){ tscError("json parse error"); return tscSQLSyntaxErrMsg(errMsg, "json parse error", NULL); -- GitLab