mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-03 03:30:35 -06:00
Merge pull request #171 from volka/isolation_level
Add an option to set a transaction isolation level in start_transaction
This commit is contained in:
@@ -207,5 +207,8 @@ int Select(int, char* [])
|
||||
for_each_field(row, to_cerr{});
|
||||
}
|
||||
|
||||
auto transaction = start_transaction(db, sqlpp::isolation_level::read_committed);
|
||||
std::cout << (db._mock_data._last_isolation_level == sqlpp::isolation_level::read_committed) << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user