aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/object-result.hxx2
-rw-r--r--odb/pgsql/object-result.txx5
2 files changed, 4 insertions, 3 deletions
diff --git a/odb/pgsql/object-result.hxx b/odb/pgsql/object-result.hxx
index 0fb68c1..53a4dbe 100644
--- a/odb/pgsql/object-result.hxx
+++ b/odb/pgsql/object-result.hxx
@@ -42,7 +42,7 @@ namespace odb
object_statements<object_type>&);
virtual void
- load (object_type&);
+ load (object_type&, bool fetch);
virtual id_type
load_id ();
diff --git a/odb/pgsql/object-result.txx b/odb/pgsql/object-result.txx
index 57a70d7..6459906 100644
--- a/odb/pgsql/object-result.txx
+++ b/odb/pgsql/object-result.txx
@@ -34,9 +34,10 @@ namespace odb
template <typename T>
void object_result_impl<T>::
- load (object_type& obj)
+ load (object_type& obj, bool fetch)
{
- load_image ();
+ if (fetch)
+ load_image ();
// This is a top-level call so the statements cannot be locked.
//