mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 10:46:03 -04:00
Added test for Savepoint, calling rollback after release or commit
This commit is contained in:
parent
ee6762c0d9
commit
61bdad3aae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user