aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/pgsql/source.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/pgsql/source.cxx')
-rw-r--r--odb/relational/pgsql/source.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx
index a7834a2..8a11914 100644
--- a/odb/relational/pgsql/source.cxx
+++ b/odb/relational/pgsql/source.cxx
@@ -1044,9 +1044,14 @@ namespace relational
<< "update_types[] ="
<< "{";
- statement_oids so (statement_where);
+ {
+ // Use insert instead of update to include read-only members.
+ //
+ statement_oids so (statement_insert);
+ so.traverse (m, vt, "value", "value");
+ }
- so.traverse (m, vt, "value", "value");
+ statement_oids so (statement_where, false);
so.traverse (m, idt, "id", "object_id");
switch (ck)