aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/connection.txx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/connection.txx b/odb/connection.txx
index f44cdad..c5662d9 100644
--- a/odb/connection.txx
+++ b/odb/connection.txx
@@ -10,6 +10,7 @@ namespace odb
{
//@@ Views. Inline?
//
- return prepared_query<T> (object_traits<T>::prepare_query (*this, n, q));
+ return prepared_query<T> (
+ object_traits_impl<T, id_default>::prepare_query (*this, n, q));
}
}