aboutsummaryrefslogtreecommitdiff
path: root/common/prepared
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-29 14:38:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-29 14:38:50 +0200
commit1dc0e3c296c52b3537e43ce9d1fc5ac62776e992 (patch)
tree220f2002b6333bad25c7d4669659d5d62048f414 /common/prepared
parent01f2fe1b6ccab88e00abc263ed020947426083f4 (diff)
Add workaround for VC++2.2.0.a1
Diffstat (limited to 'common/prepared')
-rw-r--r--common/prepared/driver.cxx16
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)