aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/polymorphic-object-statements.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/polymorphic-object-statements.txx')
-rw-r--r--odb/sqlite/polymorphic-object-statements.txx3
1 files changed, 1 insertions, 2 deletions
diff --git a/odb/sqlite/polymorphic-object-statements.txx b/odb/sqlite/polymorphic-object-statements.txx
index 6757e4b..6a376d3 100644
--- a/odb/sqlite/polymorphic-object-statements.txx
+++ b/odb/sqlite/polymorphic-object-statements.txx
@@ -1,5 +1,4 @@
// file : odb/sqlite/polymorphic-object-statements.txx
-// copyright : Copyright (c) 2005-2019 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstring> // std::memset
@@ -117,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 ());