Thanks, now it's clear what you're trying to show in your test. I understood this code sample in another way, sorry for that.
There are two issues. One that you catch in your code. In this case in H2 database Connection.commit() should work like XAResource.commit() and it actually works in this way. But last commit operation does not work in either way. It's definitely a bug. And this bug is reproducible with current sources. And documentation should provide standard way to do something, may be one pure SQL way and one JDBC-compliant way. Not the mixed one. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To post to this group, send email to h2-database@googlegroups.com. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.