mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 01:07:39 +00:00
Added test for Savepoint, calling rollback after release or commit
This commit is contained in:
@@ -42,6 +42,7 @@ TEST(Savepoint, commitRollback) {
|
||||
|
||||
// Commit again throw an exception
|
||||
EXPECT_THROW(savepoint.release(), SQLite::Exception);
|
||||
EXPECT_THROW(savepoint.rollback(), SQLite::Exception);
|
||||
}
|
||||
|
||||
// Auto rollback if no release() before the end of scope
|
||||
|
||||
Reference in New Issue
Block a user