added resultSet to try with resources
This commit is contained in:
parent
d5146b0d92
commit
8bdbda914e
@ -39,8 +39,7 @@ public abstract class AbstractCleanUpService {
|
||||
protected String dbPassword;
|
||||
|
||||
protected long executeQuery(Connection conn, String query) throws SQLException {
|
||||
try (Statement statement = conn.createStatement()) {
|
||||
ResultSet resultSet = statement.executeQuery(query);
|
||||
try (Statement statement = conn.createStatement(); ResultSet resultSet = statement.executeQuery(query)) {
|
||||
if (log.isDebugEnabled()) {
|
||||
getWarnings(statement);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user