aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-08 16:26:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-19 11:38:24 +0200
commit5c705a90d348a2a9428d5121a24eb47d0d73eb39 (patch)
tree63dd9e372fc417e4ad6c3cfe45634fe5dd6bab2b
parentf101a400442692f349822ab1d9119bca5d2b7240 (diff)
Update prepared statement code for multi-database support
-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));
}
}