From 7743e389865f12decea06eb11380f5b0e53a283b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2010 14:24:18 +0200 Subject: Cache result by default --- common/threads/driver.cxx | 3 +-- mysql/truncation/driver.cxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/threads/driver.cxx b/common/threads/driver.cxx index 539db5f..9703e29 100644 --- a/common/threads/driver.cxx +++ b/common/threads/driver.cxx @@ -71,7 +71,7 @@ struct task typedef odb::result result; transaction t (db_.begin_transaction ()); - result r (db_.query (query::str == "another value")); + result r (db_.query (query::str == "another value", false)); bool found (false); for (result::iterator i (r.begin ()); i != r.end (); ++i) @@ -136,7 +136,6 @@ test (int argc, char* argv[], size_t max_connections) transaction t (db->begin_transaction ()); result r (db->query ()); - r.cache (); for (result::iterator i (r.begin ()); i != r.end (); ++i) db->erase (i->id_); diff --git a/mysql/truncation/driver.cxx b/mysql/truncation/driver.cxx index 76985f0..eca11cd 100644 --- a/mysql/truncation/driver.cxx +++ b/mysql/truncation/driver.cxx @@ -131,7 +131,6 @@ main (int argc, char* argv[]) transaction t (db->begin_transaction ()); result r (db->query (query::id >= 20)); - r.cache (); result::iterator i (r.begin ()); o.id_ = i->id_; -- cgit v1.1