Skip to content

Commit

Permalink
pgsql: only select distinct layers
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Jan 19, 2017
1 parent dbe522f commit ca9f340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/pgsql/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca9f340

Please sign in to comment.