Postgresql, Autocommit, Procedure.
} println(" DONE. "); c.setAutoCommit(false); println(" AUTOCOMMIT: "+c.getAutoCommit()); try (CallableStatement s=c.prepareCall("call my_inserts(4,5)")){ s.execute(); } println(" DONE. "); } and here is the result of this code: Same behavior with JDBC: the first call, with AUTOCOMMIT, succeded but