summaryrefslogtreecommitdiff
path: root/base/mysql.hh
diff options
context:
space:
mode:
authorBenjamin Nash <benash@umich.edu>2005-06-13 12:32:48 -0400
committerBenjamin Nash <benash@umich.edu>2005-06-13 12:32:48 -0400
commit129417d7cb0fd2aededc50a844f8a98d4128906b (patch)
treee059c90cf581185215951eb57fafc1c8dc2e6804 /base/mysql.hh
parentaa1ebaca33a3a3c691fa4b4de6d5f80b80db32d5 (diff)
parent25788181841e47fd2fee1e908660ff93b5fdf77c (diff)
downloadgem5-129417d7cb0fd2aededc50a844f8a98d4128906b.tar.xz
Merge m5read@m5.eecs.umich.edu:/bk/m5
into zed.eecs.umich.edu:/.automount/fox/y/benash/bk/m5 --HG-- extra : convert_revision : 73a3fe048bd3f382454c10524fc4c93d3f117d6a
Diffstat (limited to 'base/mysql.hh')
-rw-r--r--base/mysql.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/base/mysql.hh b/base/mysql.hh
index b2e87dcbd..e16558dd3 100644
--- a/base/mysql.hh
+++ b/base/mysql.hh
@@ -185,6 +185,24 @@ class Connection
return query(sql.str());
}
+ bool
+ autocommit(bool mode)
+ {
+ return mysql_autocommit(&mysql, mode);
+ }
+
+ bool
+ commit()
+ {
+ return mysql_commit(&mysql);
+ }
+
+ bool
+ rollback()
+ {
+ return mysql_rollback(&mysql);
+ }
+
unsigned
field_count()
{