From e4fdd4aa54bfe7f0b9d3bbf8d67089ddec53d8c7 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/oracle/query.hxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/odb/oracle/query.hxx b/odb/oracle/query.hxx index 50c9fb3..78fdb48 100644 --- a/odb/oracle/query.hxx +++ b/odb/oracle/query.hxx @@ -1831,7 +1831,8 @@ namespace odb namespace odb { template - class query: public query_selector::type + class query: public oracle::query, + public query_selector::columns_type { public: // We don't define any typedefs here since they may clash with @@ -1844,44 +1845,44 @@ namespace odb explicit query (bool v) - : query_selector::type (v) + : oracle::query (v) { } explicit query (const char* q) - : query_selector::type (q) + : oracle::query (q) { } explicit query (const std::string& q) - : query_selector::type (q) + : oracle::query (q) { } template explicit query (oracle::val_bind v) - : query_selector::type (oracle::query (v)) + : oracle::query (oracle::query (v)) { } template explicit query (oracle::ref_bind r) - : query_selector::type (oracle::query (r)) + : oracle::query (oracle::query (r)) { } query (const oracle::query& q) - : query_selector::type (q) + : oracle::query (q) { } template query (const oracle::query_column& qc) - : query_selector::type (qc) + : oracle::query (qc) { } }; -- cgit v1.1