diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-20 11:53:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-20 11:53:04 +0200 |
commit | 18a040773c389de7be48111efc0f3cf7252ffc68 (patch) | |
tree | e68e5edde6a7f321e03172ecd5684d26644978c9 /common/view/driver.cxx | |
parent | f70b64e2c4f9861d7013492b609212ed78e840f5 (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 'common/view/driver.cxx')
-rw-r--r-- | common/view/driver.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/view/driver.cxx b/common/view/driver.cxx index 8450b34..847d21b 100644 --- a/common/view/driver.cxx +++ b/common/view/driver.cxx @@ -505,8 +505,8 @@ main (int argc, char* argv[]) { result r (db->query<view10> ( - query::measures::weight > 60 && - query::measures::hight < 190)); + query::measures.weight > 60 && + query::measures.hight < 190)); result::iterator i (r.begin ()); @@ -535,9 +535,7 @@ main (int argc, char* argv[]) transaction t (db->begin ()); { - result r (db->query<view11> ( - query::measures::weight > 60 && - query::measures::hight < 190)); + result r (db->query<view11> ()); result::iterator i (r.begin ()); |