Added test for Savepoint, calling rollback after release or commit

This commit is contained in:
Kelvin Hammond 2020-09-10 19:03:00 -04:00
parent ee6762c0d9
commit 61bdad3aae

View File

@ -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