Fixes missing alerts_map field in alerts (#7411 #7394)

This commit is contained in:
Matteo Biscosi 2023-04-19 09:19:10 +00:00
parent 6b45d3cc5f
commit ba350292ae

View file

@ -899,7 +899,10 @@ function alert_store:select_historical(filter, fields, download --[[ Available o
if ((fields == "*" and not (ntop.isClickHouseEnabled()))) then
-- SQLite needs BLOB conversion to HEX
fields = "*, hex(alerts_map) alerts_map"
fields = "*"
if table_name == 'flow_alerts' then
fields = fields .. ", hex(alerts_map) alerts_map"
end
end
-- Select everything by default