aboutsummaryrefslogtreecommitdiff
path: root/common/threads
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:24:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:24:18 +0200
commit7743e389865f12decea06eb11380f5b0e53a283b (patch)
tree1e8178a0d6cbf073bf90df301d0bc45ba9a04b23 /common/threads
parentd5fcf4c978ee0a8c4c6cc926ff02ab9d944f12b8 (diff)
Cache result by default
Diffstat (limited to 'common/threads')
-rw-r--r--common/threads/driver.cxx3
1 files changed, 1 insertions, 2 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<object> result;
transaction t (db_.begin_transaction ());
- result r (db_.query<object> (query::str == "another value"));
+ result r (db_.query<object> (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<object> ());
- r.cache ();
for (result::iterator i (r.begin ()); i != r.end (); ++i)
db->erase<object> (i->id_);