Skip to content

Commit

Permalink
Fix: Add missing EPSS columns for "no CVEs" case
Browse files Browse the repository at this point in the history
The materialized view result_vt_epss now also has the columns
epss_severity and max_epss_severity in case there are no CVEs present
when the view is created.

This fixes SQL errors resulting from those missing columns.
  • Loading branch information
timopollmeier committed Jul 29, 2024
1 parent 336ccf9 commit f9c1baf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1849,9 +1849,11 @@ create_view_result_vt_epss ()
" epss_score,"
" epss_percentile,"
" epss_cve,"
" epss_severity,"
" max_epss_score,"
" max_epss_percentile,"
" max_epss_cve"
" max_epss_cve,"
" max_epss_severity"
" FROM nvts);");

sql ("SELECT create_index ('result_vt_epss_by_vt_id',"
Expand Down

0 comments on commit f9c1baf

Please sign in to comment.