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 (). --- schema/custom/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'schema') diff --git a/schema/custom/driver.cxx b/schema/custom/driver.cxx index 1ca563c..9d049ed 100644 --- a/schema/custom/driver.cxx +++ b/schema/custom/driver.cxx @@ -150,7 +150,7 @@ main (int argc, char* argv[]) session s; transaction t (db->begin ()); - result r (db->query (query::name::last == "Doe")); + result r (db->query (query::name.last == "Doe")); for (result::iterator i (r.begin ()); i != r.end (); ++i) { -- cgit v1.1