aboutsummaryrefslogtreecommitdiff
path: root/odb/database.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.cxx')
-rw-r--r--odb/database.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/database.cxx b/odb/database.cxx
index 3ad3716..9e098c7 100644
--- a/odb/database.cxx
+++ b/odb/database.cxx
@@ -19,7 +19,7 @@ namespace odb
unsigned long long database::
execute (const char* st, std::size_t n)
{
- connection_type& c (transaction::current ().connection ());
+ connection_type& c (transaction::current ().connection (*this));
return c.execute (st, n);
}