aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/database.ixx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/database.ixx b/odb/database.ixx
index 2f39a61..1954f89 100644
--- a/odb/database.ixx
+++ b/odb/database.ixx
@@ -48,7 +48,9 @@ namespace odb
if (i == query_factory_map_.end ())
i = query_factory_map_.find (""); // Wildcard factory.
- return i != query_factory_map_.end () ? i->second : 0;
+ return i != query_factory_map_.end ()
+ ? i->second
+ : database::query_factory_type ();
}
inline void database::