Skip to content

Commit

Permalink
Issue #2155 - Update parameter_hash column
Browse files Browse the repository at this point in the history
Signed-off-by: Troy Biesterfeld <tbieste@us.ibm.com>
  • Loading branch information
tbieste committed Jun 17, 2021
1 parent 66d9000 commit 452267c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,21 +342,21 @@ protected void deleteFromParameterTable(Connection conn, String tableName, long
}

/**
* Updates the parameters hash in the LOGICAL_RESOURCES table.
* Updates the parameter hash in the LOGICAL_RESOURCES table.
* @param conn the connection
* @param logicalResourceId the logical resource ID
* @param hash the parameters hash
* @throws SQLException
*/
protected void updateParametersHash(Connection conn, long logicalResourceId, String hash) throws SQLException {
final String SQL = "UPDATE logical_resources SET parameters_hash = ? WHERE logical_resource_id = ?";
final String SQL = "UPDATE logical_resources SET parameter_hash = ? WHERE logical_resource_id = ?";
try (PreparedStatement stmt = conn.prepareStatement(SQL)) {
// bind parameters
stmt.setString(1, hash);
stmt.setLong(2, logicalResourceId);
stmt.executeUpdate();
if (logger.isLoggable(Level.FINEST)) {
logger.finest("Update parameters_hash [" + hash + "] for logicalResourceId [" + logicalResourceId + "]");
logger.finest("Update parameter_hash [" + hash + "] for logicalResourceId [" + logicalResourceId + "]");
}
} catch (SQLException x) {
logger.log(Level.SEVERE, SQL, x);
Expand Down

0 comments on commit 452267c

Please sign in to comment.