aboutsummaryrefslogtreecommitdiff
path: root/dbstore/sql/cpe-match/insert-name.sql
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-17 23:19:55 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-17 23:19:55 -0500
commit42446fcdcf9d752201414afc7e5c7bcb2fb2ee6e (patch)
tree2c633a39b51c8323f859653dc89dd53c6be78861 /dbstore/sql/cpe-match/insert-name.sql
parent103dbf934637d80e9624702d039ed2f7a153548d (diff)
downloadcvez-42446fcdcf9d752201414afc7e5c7bcb2fb2ee6e.tar.bz2
cvez-42446fcdcf9d752201414afc7e5c7bcb2fb2ee6e.zip
dbstore/sql: add cpe and cpe-match subdirs
Diffstat (limited to 'dbstore/sql/cpe-match/insert-name.sql')
-rw-r--r--dbstore/sql/cpe-match/insert-name.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbstore/sql/cpe-match/insert-name.sql b/dbstore/sql/cpe-match/insert-name.sql
new file mode 100644
index 0000000..adc99f4
--- /dev/null
+++ b/dbstore/sql/cpe-match/insert-name.sql
@@ -0,0 +1,5 @@
+INSERT INTO cpe_match_cpes(
+ cpe_match_id,
+ cpe_id,
+ cpe22_uri
+) VALUES (?, (SELECT cpe_id FROM cpes WHERE cpe23 = ?), ?);