diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-28 20:14:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-28 20:14:08 +0200 |
commit | 23bdd06c5ec17206d2dfb75ad55b3c613921dce7 (patch) | |
tree | 27585a15ff7e7d15e8c5de655571b35669e23fbd /common/threads | |
parent | 125f9cbb22ab368f40b93bc3013846b812124b02 (diff) |
Rename begin_transaction() to begin()
Diffstat (limited to 'common/threads')
-rw-r--r-- | common/threads/driver.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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<object> o (db_.load<object> (id)); assert (o->str_ == "frist object"); o->str_ = "another value"; @@ -70,7 +70,7 @@ struct task typedef odb::query<object> query; typedef odb::result<object> result; - transaction t (db_.begin_transaction ()); + transaction t (db_.begin ()); result r (db_.query<object> (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<object> (id); t.commit (); } @@ -134,7 +134,7 @@ test (int argc, char* argv[], size_t max_connections) { typedef odb::result<object> result; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); result r (db->query<object> ()); for (result::iterator i (r.begin ()); i != r.end (); ++i) |