diff --git a/src/plugins/monitor/src/monMain.c b/src/plugins/monitor/src/monMain.c index a03bc09036d14045043704e82e22fdd177c243b2..6cccf6b418637d3499ca48d6168ff2351ed017cc 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); }