mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-09 22:51:46 -06:00
Remove obsolete pointer indirection, fix warnings and a leak
Leak: The sqlite3 connection handle destructor was accidentally turned into a default constructor during the migration of repositories. Replaced the sqlite3 raw pointer with a unique_ptr to prevent this kind of accident.
This commit is contained in:
@@ -57,7 +57,7 @@ int Transaction(int, char*[])
|
||||
std::cout << "Expecting default isolation level = 1, is " << static_cast<int>(current_level) << std::endl;
|
||||
assert(current_level == sqlpp::isolation_level::serializable);
|
||||
|
||||
int pragmaValue = db(custom_query(sqlpp::verbatim("PRAGMA read_uncommitted"))
|
||||
int64_t pragmaValue = db(custom_query(sqlpp::verbatim("PRAGMA read_uncommitted"))
|
||||
.with_result_type_of(select(sqlpp::value(1).as(pragma))))
|
||||
.front()
|
||||
.pragma;
|
||||
|
||||
Reference in New Issue
Block a user