Originally reported on the a Quarkus Zulip thread:
There are 2 different execution paths in JdbcProducer. doCreateAndExecuteSqlStatementWithHeaders & doCreateAndExecuteSqlStatement.
doCreateAndExecuteSqlStatementWithHeaders does close the PreparedStatement:
doCreateAndExecuteSqlStatement does not:
This PR & commit suggests auto-closing is perhaps not desirable:
The code prior to Camel 3.12.x did close the PreparedStatement in the finally block, so maybe that should be restored.