From cf6c4ad451c5cbd6bf35c5f6d322277c6defc403 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 5 Oct 2020 12:16:36 +0200 Subject: [PATCH 1/2] Fix severity_in_level SQL function The "high" case had a condition that should only apply for "medium". --- src/manage_pg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/manage_pg.c b/src/manage_pg.c index e11265254..a311cae52 100644 --- a/src/manage_pg.c +++ b/src/manage_pg.c @@ -1446,7 +1446,6 @@ manage_create_sql_functions () " WHEN 'high'" " THEN $1 >= 7" " AND $1 <= 10" - " AND $1 < 7" " WHEN 'medium'" " THEN $1 >= 4" " AND $1 < 7" From 932080242b7f6728ab0a2ab7c5cea18eb5ad1abd Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 5 Oct 2020 12:21:03 +0200 Subject: [PATCH 2/2] Add severity_in_level fix to CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e81909a7..47fc41734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Use GMP version with leading zero for feed dirs [#1287](https://github.com/greenbone/gvmd/pull/1287) - Check db version before creating SQL functions [#1304](https://github.com/greenbone/gvmd/pull/1304) +- Fix severity_in_level SQL function [#1312](https://github.com/greenbone/gvmd/pull/1312) ### Removed - Drop GMP scanners [#1269](https://github.com/greenbone/gvmd/pull/1269)