aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-20 10:46:01 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-20 10:46:01 -0500
commita1a37bbc35ac1f793f05254edd142d0673c14c94 (patch)
tree7746ab2224bf1a32f55dc7eb725136f30cff3e7c
parentee154b172cb9eb49d89294abee9e16f1eb21d8a8 (diff)
downloadcvez-a1a37bbc35ac1f793f05254edd142d0673c14c94.tar.bz2
cvez-a1a37bbc35ac1f793f05254edd142d0673c14c94.zip
dbstore/sql/init.sql: fix printf() in cve_nvd_ids
-rw-r--r--dbstore/sql/init.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbstore/sql/init.sql b/dbstore/sql/init.sql
index a54f278..b8f56e9 100644
--- a/dbstore/sql/init.sql
+++ b/dbstore/sql/init.sql
@@ -387,7 +387,7 @@ CREATE INDEX in_cves_item_id ON cves(item_id);
--
CREATE VIEW cve_nvd_ids AS
SELECT cve_id,
- printf('CVE-%04-%04d', cve_year, cve_num) AS nvd_id
+ printf('CVE-%04d-%04d', cve_year, cve_num) AS nvd_id
FROM cves;
--