From 846c1f1b3df0c376c50ec75d08c7b3a178447c8d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Sep 2011 11:53:03 +0200 Subject: 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::employer.is_null (). --- odb/relational/source.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'odb/relational/source.cxx') 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 (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) -- cgit v1.1