Merge pull request #308 from jzelinskie/fixpagination
pgsql: only select distinct layers for LayersIntroducingVulnerability
This commit is contained in:
commit
84e4873768
@ -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