diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 13:00:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 13:00:34 +0200 |
commit | d001ec3018787138c2db6c5f6949a00807582774 (patch) | |
tree | 8c4c53676ea98536e4f5ba074688d98f133f9eb7 /odb/relational/header.hxx | |
parent | 7fddedc22a6c972306732626eda9f3cd0c6993f5 (diff) |
Rework const object handling
Now objects are always loaded as non-const and the object cache in
session treats all objects as non-const.
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r-- | odb/relational/header.hxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index e4933a0..50a40b2 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -1163,8 +1163,7 @@ namespace relational // if (options.generate_query ()) { - os << "template<typename T>" << endl - << "static result<T>" << endl + os << "static result<object_type>" << endl << "query (database&, const query_base_type&);" << endl; @@ -1204,14 +1203,6 @@ namespace relational "object_type&);" << endl; - if (options.generate_query ()) - os << "static void" << endl - << "query_ (database&," << endl - << "const query_base_type&," << endl - << db << "::object_statements< object_type >&," << endl - << "details::shared_ptr< " << db << "::select_statement >&);" - << endl; - os << "};"; } |