Commit 5e4908a
committed
Fix Transaction destructor exception-safety
The destructor caught only SQLite::Exception, so a std::bad_alloc thrown
while building the "ROLLBACK TRANSACTION" string (or any other non-SQLite
exception) escaped the implicitly noexcept destructor and called
std::terminate. Broaden the handler to catch(...), matching the Savepoint
fix (afa51d3).
Fixes TXN-08 from the code review.1 parent afa51d3 commit 5e4908a
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments