aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-21 13:00:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-21 13:00:33 +0200
commitec29cd0d06600f96cf6f395619f93b02a2a7e11c (patch)
tree49b0a997c3b8539c98779120651d0f423744834a
parent50c3d45167cf1a753fea6d662741febf38788b09 (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.
-rw-r--r--odb/pgsql/object-result.hxx7
-rw-r--r--odb/pgsql/view-result.hxx5
2 files changed, 5 insertions, 7 deletions
diff --git a/odb/pgsql/object-result.hxx b/odb/pgsql/object-result.hxx
index 1f5a9ca..e127d37 100644
--- a/odb/pgsql/object-result.hxx
+++ b/odb/pgsql/object-result.hxx
@@ -28,13 +28,12 @@ namespace odb
public:
typedef odb::result_impl<T, class_object> base_type;
- typedef typename base_type::pointer_type pointer_type;
- typedef typename base_type::pointer_traits pointer_traits;
-
typedef typename base_type::object_type object_type;
- typedef typename base_type::id_type id_type;
typedef typename base_type::object_traits object_traits;
+ typedef typename base_type::id_type id_type;
+ typedef typename base_type::pointer_type pointer_type;
+ typedef typename base_type::pointer_traits pointer_traits;
virtual
~result_impl ();
diff --git a/odb/pgsql/view-result.hxx b/odb/pgsql/view-result.hxx
index 629778b..115c128 100644
--- a/odb/pgsql/view-result.hxx
+++ b/odb/pgsql/view-result.hxx
@@ -28,12 +28,11 @@ namespace odb
public:
typedef odb::result_impl<T, class_view> base_type;
- typedef typename base_type::pointer_type pointer_type;
- typedef typename base_type::pointer_traits pointer_traits;
-
typedef typename base_type::view_type view_type;
typedef typename base_type::view_traits view_traits;
+ typedef typename base_type::pointer_type pointer_type;
+ typedef typename base_type::pointer_traits pointer_traits;
virtual
~result_impl ();