aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/header.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r--odb/relational/header.hxx31
1 files changed, 20 insertions, 11 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx
index f7e1058..30cb01e 100644
--- a/odb/relational/header.hxx
+++ b/odb/relational/header.hxx
@@ -1133,17 +1133,26 @@ namespace relational
// query_type
//
- os << "typedef query_base_type query_type;"
- << endl;
-
- /*
- os << "struct query_type: query_base_type, query_columns"
- << "{"
- << "query_type ();"
- << "query_type (const std::string&);"
- << "query_type (const query_base_type&);"
- << "};";
- */
+ if (c.count ("objects"))
+ {
+ /*
+ typedef std::vector<semantics::class_*> objects;
+
+ objects const& objs (c.get<objects> ("objects"));
+ */
+
+ /*
+ os << "struct query_type: query_base_type, query_columns"
+ << "{"
+ << "query_type ();"
+ << "query_type (const std::string&);"
+ << "query_type (const query_base_type&);"
+ << "};";
+ */
+ }
+ else
+ os << "typedef query_base_type query_type;"
+ << endl;
//
// Functions.