From 6dfc18d7a7cd0c5ec231875242ffc92f226a046d Mon Sep 17 00:00:00 2001 From: Chris Enoch Date: Sun, 10 Dec 2023 20:02:50 +0000 Subject: [PATCH] Removed version_id by name check as ther result set is not returning that name --- .../se/nvip/db/repositories/VulnerabilityRepository.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/src/main/java/edu/rit/se/nvip/db/repositories/VulnerabilityRepository.java b/db/src/main/java/edu/rit/se/nvip/db/repositories/VulnerabilityRepository.java index cf13a3de..203aeeb0 100644 --- a/db/src/main/java/edu/rit/se/nvip/db/repositories/VulnerabilityRepository.java +++ b/db/src/main/java/edu/rit/se/nvip/db/repositories/VulnerabilityRepository.java @@ -166,10 +166,10 @@ public int insertOrUpdateVulnerabilityFull(CompositeVulnerability vuln, boolean vvStatement.executeUpdate(); rs = vvStatement.getGeneratedKeys(); if (rs.next()) { - log.info("Column name: {}", rs.getMetaData().getColumnName(1)); +// log.info("Column name: {}", rs.getMetaData().getColumnName(1)); int versionId = rs.getInt(1); - int versionIdByName = rs.getInt("vuln_version_id"); - log.info("rs.getInt(1) returned {}\nrs.getInt(\"vuln_version_id\") returned {}", versionId, versionIdByName); +// int versionIdByName = rs.getInt("vuln_version_id"); +// log.info("rs.getInt(1) returned {}\nrs.getInt(\"vuln_version_id\") returned {}", versionId, versionIdByName); vuln.setVersionId(versionId); } // if we're updating, copy over the vdo/cpe pointers to this new version