aboutsummaryrefslogtreecommitdiff
path: root/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'mysql')
-rw-r--r--mysql/template/driver.cxx2
-rw-r--r--mysql/truncation/driver.cxx16
-rw-r--r--mysql/types/driver.cxx4
3 files changed, 11 insertions, 11 deletions
diff --git a/mysql/template/driver.cxx b/mysql/template/driver.cxx
index 45a73eb..5e4d6b3 100644
--- a/mysql/template/driver.cxx
+++ b/mysql/template/driver.cxx
@@ -32,7 +32,7 @@ main (int argc, char* argv[])
//
cout << "test 001" << endl;
{
- transaction t (db->begin_transaction ());
+ transaction t (db->begin ());
t.commit ();
}
}
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 ());
diff --git a/mysql/types/driver.cxx b/mysql/types/driver.cxx
index 2a6c94e..ef87afd 100644
--- a/mysql/types/driver.cxx
+++ b/mysql/types/driver.cxx
@@ -83,7 +83,7 @@ main (int argc, char* argv[])
o.set_.insert ("blue");
{
- transaction t (db->begin_transaction ());
+ transaction t (db->begin ());
db->persist (o);
t.commit ();
}
@@ -91,7 +91,7 @@ main (int argc, char* argv[])
//
//
{
- transaction t (db->begin_transaction ());
+ transaction t (db->begin ());
auto_ptr<object> o1 (db->load<object> (1));
t.commit ();