Github user jakubneubauer commented on the issue:
https://github.com/apache/metamodel/pull/164
Now I checked the rest. Also executed few tests on real database:
- The connection obtained from the UpdateScript used for queries is the
same as used for updates - OK
- Transaction is not committed during the UpdateScript duration nor after
updates/inserts/deletes nor after the queries.
- On the other getting connection on DataContext outside of UpdateScript
returns new connection - OK
- Throwing any exception from the update script causes rollback.
Code looks fine, I recommend merge :-)
---