pgsql: only select distinct layers
This commit is contained in:
parent
dbe522fdd5
commit
ca9f340a91
@ -212,7 +212,7 @@ const (
|
||||
|
||||
searchNotificationLayerIntroducingVulnerability = `
|
||||
WITH LDFV AS (
|
||||
SELECT ldfv.layer_id
|
||||
SELECT DISTINCT ldfv.layer_id
|
||||
FROM Vulnerability_Affects_FeatureVersion vafv, FeatureVersion fv, Layer_diff_FeatureVersion ldfv
|
||||
WHERE ldfv.layer_id >= $2
|
||||
AND vafv.vulnerability_id = $1
|
||||
|
Loading…
Reference in New Issue
Block a user