Skip to content
Snippets Groups Projects
Verified Commit 0aa9091e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

minor cleanup

parent 778729c7
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@
# ** end header
#
# TODO set DEPLOY_REF to dev after merge of f-feature-branch-pipeline
variables:
DEPLOY_REF: f-feature-branch-pipeline
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/caosdb-server/caosdb-server-testenv:latest
......
......@@ -51,13 +51,10 @@ public class MySQLRetrieveSparseEntity extends MySQLTransaction
final PreparedStatement preparedStatement = prepareStatement(stmtStr);
preparedStatement.setInt(1, id);
final ResultSet rs = preparedStatement.executeQuery();
try {
try (final ResultSet rs = preparedStatement.executeQuery()) {
if (rs.next()) {
return DatabaseUtils.parseEntityResultSet(rs);
}
} finally {
rs.close();
}
} catch (final SQLException e) {
throw new TransactionException(e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment