mindplay-dk / sql

Database framework and query builder
Other
18 stars 6 forks source link

Transaction semantics #3

Closed mindplay-dk closed 8 years ago

mindplay-dk commented 8 years ago

Parent transactions currently can be silently rolled-back by a sub-transaction which returns false.

This is risky.

We should probably assume success and always throw if the transaction gets rolled back - rather than just returning false - since the return value may not get checked by the caller, whereas a throw would force somebody to deal with a rolled-back transaction.

Yeah.