Skip to content

Commit

Permalink
Removed version_id by name check as ther result set is not returning …
Browse files Browse the repository at this point in the history
…that name
  • Loading branch information
ctevse committed Dec 10, 2023
1 parent dcfebc2 commit 6dfc18d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dfc18d

Please sign in to comment.