aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/polymorphic-object-statements.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-04-30 10:00:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-04-30 10:02:19 +0200
commitedaa6f79149a79d6b59efa711bbd5feeeb40513e (patch)
treea83f76e1b353c825886073f3d1086c9f67164e75 /odb/sqlite/polymorphic-object-statements.txx
parent55fd0fe24bb754b34381cf26fed1327cd37415fc (diff)
Add transaction::connection(database&) overload
Diffstat (limited to 'odb/sqlite/polymorphic-object-statements.txx')
-rw-r--r--odb/sqlite/polymorphic-object-statements.txx2
1 files changed, 1 insertions, 1 deletions
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<object_type> ());
root_statements_type& rsts (sts.root_statements ());