aboutsummaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 34f9692..d6e4713 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -199,6 +199,8 @@ view_relationship_map;
//
struct view_query
{
+ view_query (): distinct (false), for_update (false) {}
+
enum kind_type
{
runtime,
@@ -212,6 +214,11 @@ struct view_query
cxx_tokens expr;
tree scope;
location_t loc;
+
+ // Result modifiers (only for condition).
+ //
+ bool distinct; // SELECT DISTINCT
+ bool for_update; // SELECT FOR UPDATE
};
//