From 1b32b8e4f9bca689a937a2efe30235f71f92ac3c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Jul 2012 13:45:30 +0200 Subject: Simplify query inheritance hierarchy This should also allow Sun CC handle queries for objects with circular dependencies. --- odb/pgsql/query.hxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/odb/pgsql/query.hxx b/odb/pgsql/query.hxx index 0b5ff55..9e75565 100644 --- a/odb/pgsql/query.hxx +++ b/odb/pgsql/query.hxx @@ -1763,7 +1763,8 @@ namespace odb namespace odb { template - class query: public query_selector::type + class query: public pgsql::query, + public query_selector::columns_type { public: // We don't define any typedefs here since they may clash with @@ -1776,44 +1777,44 @@ namespace odb explicit query (bool v) - : query_selector::type (v) + : pgsql::query (v) { } explicit query (const char* q) - : query_selector::type (q) + : pgsql::query (q) { } explicit query (const std::string& q) - : query_selector::type (q) + : pgsql::query (q) { } template explicit query (pgsql::val_bind v) - : query_selector::type (pgsql::query (v)) + : pgsql::query (pgsql::query (v)) { } template explicit query (pgsql::ref_bind r) - : query_selector::type (pgsql::query (r)) + : pgsql::query (pgsql::query (r)) { } query (const pgsql::query& q) - : query_selector::type (q) + : pgsql::query (q) { } template query (const pgsql::query_column& qc) - : query_selector::type (qc) + : pgsql::query (qc) { } }; -- cgit v1.1