diff --git a/src/client/src/tscParseOpenTSDB.c b/src/client/src/tscParseOpenTSDB.c index bae8b3acb1bc4a1db4fa92587a30220d6b49eb66..c5ea4b8084f069b0e6ae949686052af6208fb4a7 100644 --- a/src/client/src/tscParseOpenTSDB.c +++ b/src/client/src/tscParseOpenTSDB.c @@ -569,7 +569,7 @@ int32_t parseTagsFromJSON(cJSON *root, TAOS_SML_KV **pKVs, int *num_kvs, char ** cJSON *id = cJSON_GetObjectItem(tags, "ID"); if (id != NULL) { - int32_t idLen = strlen(id->string); + int32_t idLen = strlen(id->valuestring); ret = isValidChildTableName(id->valuestring, idLen); if (ret != TSDB_CODE_SUCCESS) { return ret;