aboutsummaryrefslogtreecommitdiff
path: root/common/view/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/view/driver.cxx')
-rw-r--r--common/view/driver.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/view/driver.cxx b/common/view/driver.cxx
index a3ef34f..a6048dd 100644
--- a/common/view/driver.cxx
+++ b/common/view/driver.cxx
@@ -575,6 +575,29 @@ main (int argc, char* argv[])
t.commit ();
}
}
+
+ // view12
+ //
+ {
+ typedef odb::query<view12> query;
+ typedef odb::result<view12> result;
+
+ {
+ transaction t (db->begin ());
+
+ {
+ result r (db->query<view12> (query::last_name == "Dirt"));
+
+ result::iterator i (r.begin ());
+
+ assert (i != r.end ());
+ assert (i->residence == "US");
+ assert (++i == r.end ());
+ }
+
+ t.commit ();
+ }
+ }
}
catch (const odb::exception& e)
{