From 7ce07d1c371e32e474897e8b03da7e330aaefb57 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Sep 2011 16:56:07 +0200 Subject: Support for views; native part --- odb/pgsql/query.hxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'odb/pgsql/query.hxx') diff --git a/odb/pgsql/query.hxx b/odb/pgsql/query.hxx index 96fa126..7633cc4 100644 --- a/odb/pgsql/query.hxx +++ b/odb/pgsql/query.hxx @@ -1674,7 +1674,7 @@ namespace odb namespace odb { template - class query: public object_traits::query_type + class query: public query_selector::type { public: // We don't define any typedefs here since they may clash with @@ -1687,40 +1687,40 @@ namespace odb explicit query (const std::string& q) - : object_traits::query_type (q) + : query_selector::type (q) { } template explicit query (pgsql::val_bind v) - : object_traits::query_type (pgsql::query (v)) + : query_selector::type (pgsql::query (v)) { } template explicit query (pgsql::ref_bind r) - : object_traits::query_type (pgsql::query (r)) + : query_selector::type (pgsql::query (r)) { } query (const pgsql::query& q) - : object_traits::query_type (q) + : query_selector::type (q) { } template query (const pgsql::query_column& qc) - : object_traits::query_type (qc) + : query_selector::type (qc) { } std::string clause () const { - return object_traits::query_type::clause ( - object_traits::table_name); + return query_selector::type::clause ( + query_selector::table_name ()); } }; } -- cgit v1.1