aboutsummaryrefslogtreecommitdiff
path: root/mysql/truncation/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-28 20:14:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-28 20:14:08 +0200
commit23bdd06c5ec17206d2dfb75ad55b3c613921dce7 (patch)
tree27585a15ff7e7d15e8c5de655571b35669e23fbd /mysql/truncation/driver.cxx
parent125f9cbb22ab368f40b93bc3013846b812124b02 (diff)
Rename begin_transaction() to begin()
Diffstat (limited to 'mysql/truncation/driver.cxx')
-rw-r--r--mysql/truncation/driver.cxx16
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 ());