Skip to content

Commit

Permalink
Merge pull request #308 from jzelinskie/fixpagination
Browse files Browse the repository at this point in the history
pgsql: only select distinct layers for LayersIntroducingVulnerability
  • Loading branch information
jzelinskie committed Jan 20, 2017
2 parents dbe522f + ca9f340 commit 84e4873
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 84e4873

Please sign in to comment.