From dcfebc2387eb1d604b6c461ee130f6b34a57ba8b Mon Sep 17 00:00:00 2001 From: Chris Enoch Date: Sun, 10 Dec 2023 19:54:57 +0000 Subject: [PATCH] Added logger to vuln insert sql for debugging statement --- .../edu/rit/se/nvip/db/repositories/VulnerabilityRepository.java | 1 + 1 file changed, 1 insertion(+) 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 225cb1bd..cf13a3de 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,6 +166,7 @@ public int insertOrUpdateVulnerabilityFull(CompositeVulnerability vuln, boolean vvStatement.executeUpdate(); rs = vvStatement.getGeneratedKeys(); if (rs.next()) { + 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);