You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: database/pgsql/queries.go
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -264,9 +264,9 @@ const (
264
264
deleteStaleRHELv2Vulns=`DELETE FROM vuln_v2 WHERE name = ANY($1::text[]) and package_name = ANY($2::text[]) and cpe = ANY($3::text[]) and package_module = $4;`
265
265
266
266
insertRHELv2Layer=`
267
-
INSERT INTO rhelv2_layer (hash, parent_hash, dist, cpes)
268
-
VALUES ($1, $2, $3, $4)
269
-
ON CONFLICT (hash) DO NOTHING;`
267
+
INSERT INTO rhelv2_layer (hash, parent_hash, dist, cpes, lineage, parent_lineage)
268
+
VALUES ($1, $2, $3, $4, $5, $6)
269
+
ON CONFLICT (hash, lineage) DO NOTHING;`
270
270
271
271
// Inside the `WITH RECURSIVE`, the base case is the top query, and the
272
272
// recursive case is the bottom query.
@@ -276,15 +276,17 @@ const (
276
276
// This query looks for all the layers in the given layer's hierarchy.
0 commit comments