diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-05 14:17:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-05 14:17:07 +0200 |
commit | 2ca4828d303fdd27c573429910f7a25fd1e3727c (patch) | |
tree | d2637c11861d44a634ecc09bbe88c3a3ff350b16 /odb/relational/mssql/source.cxx | |
parent | 8e69f40ab32dc8604b68f360ae30fa961ba036ee (diff) |
Implement result modifiers in view query condition
Diffstat (limited to 'odb/relational/mssql/source.cxx')
-rw-r--r-- | odb/relational/mssql/source.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/relational/mssql/source.cxx b/odb/relational/mssql/source.cxx index ca36dfb..71bc40e 100644 --- a/odb/relational/mssql/source.cxx +++ b/odb/relational/mssql/source.cxx @@ -1179,6 +1179,17 @@ namespace relational } } + virtual string + from_trailer (type& c) + { + return c.get<view_query> ("query").for_update + ? " WITH (UPDLOCK)" + : ""; + } + + virtual string + select_trailer (type&) {return "";} + private: // Go via the dynamic creation to get access to the constructor. // |