From edaa6f79149a79d6b59efa711bbd5feeeb40513e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Apr 2021 10:00:33 +0200 Subject: Add transaction::connection(database&) overload --- odb/sqlite/polymorphic-object-statements.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/sqlite/polymorphic-object-statements.txx') diff --git a/odb/sqlite/polymorphic-object-statements.txx b/odb/sqlite/polymorphic-object-statements.txx index f2a1605..6a376d3 100644 --- a/odb/sqlite/polymorphic-object-statements.txx +++ b/odb/sqlite/polymorphic-object-statements.txx @@ -116,7 +116,7 @@ namespace odb root_type& robj, const schema_version_migration* svm) { - connection_type& conn (transaction::current ().connection ()); + connection_type& conn (transaction::current ().connection (db)); polymorphic_derived_object_statements& sts ( conn.statement_cache ().find_object ()); root_statements_type& rsts (sts.root_statements ()); -- cgit v1.1