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