aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-20 11:53:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-20 11:53:03 +0200
commit846c1f1b3df0c376c50ec75d08c7b3a178447c8d (patch)
tree8f0a1cbe93d6f9c05d26c759c39746c11618a2a0 /odb/relational/source.cxx
parentac12b70416fb671a1ddf8c4fa184dd2d29975ff3 (diff)
Change query syntax to use . for composite and -> for object pointer access
Also make non-inverse query columns act as both an object pointer and a normal column. The latter allows us to use natural expressions such as query<employee>::employer.is_null ().
Diffstat (limited to 'odb/relational/source.cxx')
-rw-r--r--odb/relational/source.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx
index ac29e6d..6b364cf 100644
--- a/odb/relational/source.cxx
+++ b/odb/relational/source.cxx
@@ -245,10 +245,7 @@ namespace relational
m = dynamic_cast<data_member*> (ctx.unit.find (decl));
- //@@ Temporarily translate '.' to '::' until the query is changed
- // to use '.' for composite member access.
- //
- r += "::";
+ r += '.';
r += ctx.public_name (*m);
if (check_ptr)