aboutsummaryrefslogtreecommitdiff
path: root/dbstore/sql/feed
diff options
context:
space:
mode:
Diffstat (limited to 'dbstore/sql/feed')
-rw-r--r--dbstore/sql/feed/insert-cve.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbstore/sql/feed/insert-cve.sql b/dbstore/sql/feed/insert-cve.sql
index 02c0a8a..9e62048 100644
--- a/dbstore/sql/feed/insert-cve.sql
+++ b/dbstore/sql/feed/insert-cve.sql
@@ -1,2 +1,5 @@
-- add cve
-INSERT INTO cves(item_id, nvd_cve_id, assigner) VALUES (?, ?, ?);
+INSERT INTO cves(item_id, cve_year, cve_num, assigner_id) VALUES (
+ ?, ?, ?,
+ (SELECT assigner_id FROM assigners WHERE assigner = ?)
+);