From 2ca4828d303fdd27c573429910f7a25fd1e3727c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 5 Feb 2015 14:17:07 +0200 Subject: Implement result modifiers in view query condition --- odb/relational/source.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/relational/source.hxx') 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 ("query").for_update ? "FOR UPDATE" : ""; + } + virtual void traverse_view (type& c); -- cgit v1.1