From b48c0c88bc8a606d4268ef64bbb3e6b19c591dc6 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 b93d85140c..86ae2ec6d4 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