aboutsummaryrefslogtreecommitdiff
path: root/common/query/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/query/driver.cxx')
-rw-r--r--common/query/driver.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/query/driver.cxx b/common/query/driver.cxx
index 6bef996..9d948cc 100644
--- a/common/query/driver.cxx
+++ b/common/query/driver.cxx
@@ -401,6 +401,17 @@ main (int argc, char* argv[])
t.commit ();
}
+
+ // Test uncached result.
+ //
+ cout << "test 015" << endl;
+ {
+ transaction t (db->begin ());
+ result r (db->query<person> (query::last_name == "Doe", false));
+ print (r);
+ t.commit ();
+ }
+
}
catch (const odb::exception& e)
{