aboutsummaryrefslogtreecommitdiff
path: root/common/query/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-10 13:59:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-10 13:59:08 +0200
commit9ed005a6000008b8e84d98a52407a0ab8cb412d0 (patch)
tree20d0986d9ec277ca7d7468de07a6dd1126665a24 /common/query/driver.cxx
parent3076df2628f514b50065912a72269f2dc717e164 (diff)
Test new result interface
Diffstat (limited to 'common/query/driver.cxx')
-rw-r--r--common/query/driver.cxx22
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 ();
}