drift
drift copied to clipboard
If batch is used in transaction, exceptions cannot be rolled back?
await transaction(
() async {
await batch(
(b) {
b.insert(table, entity);
}
);
throw "ddd";
},
This test passes: https://github.com/simolus3/drift/blob/aee0585db013716a4caf2fa5cec392394112586d/drift/test/integration_tests/database_test.dart#L112-L130
Do you have a full test case that doesn't work for me to look at, or is there anything obvious that test is doing differently than you are?
There has been no activity in this issue for over a year and no reproducible bug exists.