From 59c20c96b68b733f7057a37dfe2a43a710f4f0bc Mon Sep 17 00:00:00 2001 From: xywang Date: Tue, 8 Mar 2022 15:44:54 +0800 Subject: [PATCH] [TS-1289]: fixed incorrect create stable rebuild statement --- src/client/src/tscLocal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index b6c8b3de3f..f648baa974 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", ")"); } -- GitLab