aboutsummaryrefslogtreecommitdiff
path: root/odb/connection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/connection.cxx')
-rw-r--r--odb/connection.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/connection.cxx b/odb/connection.cxx
index 87f76d3..e3bc946 100644
--- a/odb/connection.cxx
+++ b/odb/connection.cxx
@@ -12,6 +12,8 @@ using namespace std;
namespace odb
{
+ // connection
+ //
connection::
~connection ()
{
@@ -98,8 +100,8 @@ namespace odb
{
// Use a factory, if there is one.
//
- if (database_.call_query_factory (name,
- const_cast<connection&> (*this)))
+ if (factory_.database ().call_query_factory (
+ name, const_cast<connection&> (*this)))
i = prepared_map_.find (name);
}