diff options
Diffstat (limited to 'common/prepared/driver.cxx')
-rw-r--r-- | common/prepared/driver.cxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/common/prepared/driver.cxx b/common/prepared/driver.cxx index fc74e24..ba92285 100644 --- a/common/prepared/driver.cxx +++ b/common/prepared/driver.cxx @@ -283,13 +283,15 @@ main (int argc, char* argv[]) "person-params-query-2", [] (const char* name, connection& c) { - auto_ptr<params> p (new params); - prepared_query<person> pq ( - c.prepare_query<person> ( - name, - query::age > query::_ref (p->age) && - query::name != query::_ref (p->name))); - c.cache_query (pq, p); + typedef odb::query<person> query; + + auto_ptr<params> p (new params); + prepared_query<person> pq ( + c.prepare_query<person> ( + name, + query::age > query::_ref (p->age) && + query::name != query::_ref (p->name))); + c.cache_query (pq, p); }); for (unsigned int i (1); i < 6; ++i) |