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 /mysql/truncation | |
parent | 125f9cbb22ab368f40b93bc3013846b812124b02 (diff) |
Rename begin_transaction() to begin()
Diffstat (limited to 'mysql/truncation')
-rw-r--r-- | mysql/truncation/driver.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mysql/truncation/driver.cxx b/mysql/truncation/driver.cxx index d4e50c6..97c7b94 100644 --- a/mysql/truncation/driver.cxx +++ b/mysql/truncation/driver.cxx @@ -43,7 +43,7 @@ main (int argc, char* argv[]) object1 o (1); o.str_ = "test string"; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); db->load (1, o); t.commit (); @@ -53,7 +53,7 @@ main (int argc, char* argv[]) object2 o (2); o.str_ = "test string"; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); db->load (2, o); t.commit (); @@ -65,13 +65,13 @@ main (int argc, char* argv[]) object1 o (3); o.str_ = long_str; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); t.commit (); } { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr<object2> o (db->load<object2> (3)); assert (o->str_ == long_str); t.commit (); @@ -83,13 +83,13 @@ main (int argc, char* argv[]) object1 o (3); o.str_ = longer_str; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->update (o); t.commit (); } { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr<object2> o (db->load<object2> (3)); assert (o->str_ == longer_str); t.commit (); @@ -111,7 +111,7 @@ main (int argc, char* argv[]) object1 o (20); o.str_ = "test string"; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); o.id_++; db->persist (o); @@ -128,7 +128,7 @@ main (int argc, char* argv[]) { object1 o; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); result r (db->query<object1> (query::id >= 20)); result::iterator i (r.begin ()); |