diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index b6c8b3de3f9b1b0d84f9b1ea5eecc496cf58ba0c..f648baa9744cf00545e3f96b736661dce6e958e0 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -385,7 +385,7 @@ static int32_t tscGetTableTagValue(SCreateBuilder *builder, char *result) { if (i == num_fields - 1) { if (fields[i].type == TSDB_DATA_TYPE_JSON) { - sprintf(result + strlen(result) - 1, "%s'", ")"); + sprintf(result + strlen(result) - 1, "'%s", ")"); } else { sprintf(result + strlen(result) - 1, "%s", ")"); }