spring-framework / org.springframework.jdbc.support / JdbcUtils / closeStatement

closeStatement

open static fun closeStatement(@Nullable stmt: Statement): Unit

Close the given JDBC Statement and ignore any thrown exception. This is useful for typical finally blocks in manual JDBC code.

Parameters

stmt - the JDBC Statement to close (may be null)