aboutsummaryrefslogtreecommitdiff
path: root/boost/driver.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
commit6149a26d16e63d6ab1d2a47a2135a835a8d2caef (patch)
treea32ab798d777cb96cef2d0d16dc4d63b85de6f6c /boost/driver.cxx
parentc1de8a85b35664526fe4339fe6231a725b940437 (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 'boost/driver.cxx')
-rw-r--r--boost/driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/driver.cxx b/boost/driver.cxx
index bb1f134..6f59f90 100644
--- a/boost/driver.cxx
+++ b/boost/driver.cxx
@@ -142,7 +142,7 @@ main (int argc, char* argv[])
transaction t (db->begin ());
result r (db->query<employee> (
- query::employer::name == "Complex Systems Inc" &&
+ query::employer->name == "Complex Systems Inc" &&
query::born < date (1978, Apr, 1)));
for (result::iterator i (r.begin ()); i != r.end (); ++i)