From 6149a26d16e63d6ab1d2a47a2135a835a8d2caef 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 (). --- composite/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'composite/driver.cxx') diff --git a/composite/driver.cxx b/composite/driver.cxx index 9c50d45..56be15d 100644 --- a/composite/driver.cxx +++ b/composite/driver.cxx @@ -82,7 +82,7 @@ main (int argc, char* argv[]) transaction t (db->begin ()); result r (db->query ( - query::name::extras::nickname == "Squeaky")); + query::name.extras.nickname == "Squeaky")); if (!r.empty ()) { -- cgit v1.1