drift icon indicating copy to clipboard operation
drift copied to clipboard

If batch is used in transaction, exceptions cannot be rolled back?

Open ddxl123 opened this issue 2 years ago • 1 comments

await transaction(
        () async {
              await batch(
                 (b) {
                      b.insert(table, entity);
                 }
              );
              throw "ddd";
       },

ddxl123 avatar Feb 19 '23 18:02 ddxl123

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?

simolus3 avatar Feb 19 '23 20:02 simolus3

There has been no activity in this issue for over a year and no reproducible bug exists.

dickermoshe avatar Aug 16 '24 16:08 dickermoshe