mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 18:56:40 -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
|
// Commit again throw an exception
|
||||||
EXPECT_THROW(savepoint.release(), SQLite::Exception);
|
EXPECT_THROW(savepoint.release(), SQLite::Exception);
|
||||||
|
EXPECT_THROW(savepoint.rollback(), SQLite::Exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto rollback if no release() before the end of scope
|
// Auto rollback if no release() before the end of scope
|
||||||
|
Loading…
x
Reference in New Issue
Block a user