From 23bdd06c5ec17206d2dfb75ad55b3c613921dce7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Sep 2010 20:14:08 +0200 Subject: Rename begin_transaction() to begin() --- common/threads/driver.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common/threads') diff --git a/common/threads/driver.cxx b/common/threads/driver.cxx index 14ca172..bbd0ac0 100644 --- a/common/threads/driver.cxx +++ b/common/threads/driver.cxx @@ -50,7 +50,7 @@ struct task object o2 (id + 1, "second object"); object o3 (id + 2, "third object"); - transaction t (db_.begin_transaction ()); + transaction t (db_.begin ()); db_.persist (o1); db_.persist (o2); db_.persist (o3); @@ -58,7 +58,7 @@ struct task } { - transaction t (db_.begin_transaction ()); + transaction t (db_.begin ()); auto_ptr o (db_.load (id)); assert (o->str_ == "frist object"); o->str_ = "another value"; @@ -70,7 +70,7 @@ struct task typedef odb::query query; typedef odb::result result; - transaction t (db_.begin_transaction ()); + transaction t (db_.begin ()); result r (db_.query (query::str == "another value", false)); bool found (false); @@ -87,7 +87,7 @@ struct task } { - transaction t (db_.begin_transaction ()); + transaction t (db_.begin ()); db_.erase (id); t.commit (); } @@ -134,7 +134,7 @@ test (int argc, char* argv[], size_t max_connections) { typedef odb::result result; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); result r (db->query ()); for (result::iterator i (r.begin ()); i != r.end (); ++i) -- cgit v1.1