From 9f817fe2d2135e4fb675cede0f942595d4bc8781 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Thu, 23 Dec 2021 16:34:21 +0800 Subject: [PATCH] [TD-11999](other): remove double quotes from restful_info table using underscore instead --- src/plugins/monitor/src/monMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/monitor/src/monMain.c b/src/plugins/monitor/src/monMain.c index a03bc09036..6cccf6b418 100644 --- a/src/plugins/monitor/src/monMain.c +++ b/src/plugins/monitor/src/monMain.c @@ -463,7 +463,7 @@ static void monBuildMonitorSql(char *sql, int32_t cmd) { int pos = snprintf(sql, SQL_LENGTH, "create table if not exists %s.restful_info(ts timestamp", tsMonitorDbName); for (int i = 0; i < tListLen(monHttpStatusTable); ++i) { - pos += snprintf(sql + pos, SQL_LENGTH, ", `%s(%d)` int", + pos += snprintf(sql + pos, SQL_LENGTH, ", %s_%d int", monHttpStatusTable[i].name, monHttpStatusTable[i].code); } -- GitLab