diff --git a/src/client/src/tscParseOpenTSDB.c b/src/client/src/tscParseOpenTSDB.c index 379694ede56039342c940ba257c7553a16d04384..5686756dc645c856b8568ff17501a0f3a21a1c4e 100644 --- a/src/client/src/tscParseOpenTSDB.c +++ b/src/client/src/tscParseOpenTSDB.c @@ -692,7 +692,7 @@ int32_t parseValueFromJSON(cJSON *root, TAOS_SML_KV *pVal, SSmlLinesInfo* info) pVal->type = TSDB_DATA_TYPE_BOOL; pVal->length = (int16_t)tDataTypes[pVal->type].bytes; pVal->value = tcalloc(pVal->length, 1); - *(bool *)(pVal->value) = type ? true : false; + *(bool *)(pVal->value) = root->valueint ? true : false; break; } case cJSON_Number: {