aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/source.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-05 14:17:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-05 14:17:07 +0200
commit2ca4828d303fdd27c573429910f7a25fd1e3727c (patch)
treed2637c11861d44a634ecc09bbe88c3a3ff350b16 /odb/relational/source.hxx
parent8e69f40ab32dc8604b68f360ae30fa961ba036ee (diff)
Implement result modifiers in view query condition
Diffstat (limited to 'odb/relational/source.hxx')
-rw-r--r--odb/relational/source.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
index a725b6a..48d0e1d 100644
--- a/odb/relational/source.hxx
+++ b/odb/relational/source.hxx
@@ -6677,6 +6677,15 @@ namespace relational
<< "imb";
}
+ virtual string
+ from_trailer (type&) { return "";}
+
+ virtual string
+ select_trailer (type& c)
+ {
+ return c.get<view_query> ("query").for_update ? "FOR UPDATE" : "";
+ }
+
virtual void
traverse_view (type& c);