diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/query/driver.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/query/driver.cxx b/common/query/driver.cxx index bcfbff1..9a8300a 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -82,7 +82,14 @@ main (int argc, char* argv[]) { transaction t (db->begin_transaction ()); result<person> r (db->query<person> ()); - print (r); + + for (result<person>::iterator i (r.begin ()); i != r.end (); ++i) + { + person p; + i.load (p); + cout << p << endl; + } + t.commit (); } |