This does not happen in 5.0. In 5.0 the connection is committed before setting autocommit. In 5.1, the connection is not committed before attempting to set autocommit=true. I'm not sure if it is appropriate for Hibernate to call commit for a managed connection. Steve Ebersole should JdbcConnectionAccessConnectionProviderImpl constructor call jdbcConnection#commit before calling jdbcConnection#setAutoCommit( true )? |