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