diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 13:59:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 13:59:08 +0200 |
commit | 9ed005a6000008b8e84d98a52407a0ab8cb412d0 (patch) | |
tree | 20d0986d9ec277ca7d7468de07a6dd1126665a24 /common/query | |
parent | 3076df2628f514b50065912a72269f2dc717e164 (diff) |
Test new result interface
Diffstat (limited to 'common/query')
-rw-r--r-- | common/query/driver.cxx | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/common/query/driver.cxx b/common/query/driver.cxx index 214dd7b..bcfbff1 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -137,19 +137,15 @@ main (int argc, char* argv[]) query q ("age >= " + query::_ref (age) + "AND" + "last_name = " + query::_ref (name)); - { - name = "Doe"; - age = 30; - result<person> r (db->query<person> (q)); - print (r); - } - - { - name = "Dirt"; - age = 31; - result<person> r (db->query<person> (q)); - print (r); - } + name = "Doe"; + age = 30; + result<person> r (db->query<person> (q)); + print (r); + + name = "Dirt"; + age = 31; + r = db->query<person> (q); + print (r); t.commit (); } |