Merge pull request #308 from jzelinskie/fixpagination

pgsql: only select distinct layers for LayersIntroducingVulnerability
This commit is contained in:
Jimmy Zelinskie 2017-01-20 13:44:33 -05:00 committed by GitHub
commit 84e4873768

View File

@ -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