aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@kodi.tv>2015-03-02 16:54:11 +0100
committerMatthias Kortstiege <mkortstiege@kodi.tv>2015-03-02 17:05:03 +0100
commit38aa3926a41e92738eee2ed0eb9f01e9b01ad46b (patch)
tree69d1763e79916a41416660a66b9a5e418263f18f
parentf0ca08ec85dfa5cd63310de6269804c0f966de4b (diff)
[mysql] properly toggle mysql transactions automode
-rw-r--r--xbmc/dbwrappers/mysqldataset.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/dbwrappers/mysqldataset.cpp b/xbmc/dbwrappers/mysqldataset.cpp
index 5f56a95ef3..48c7e4955f 100644
--- a/xbmc/dbwrappers/mysqldataset.cpp
+++ b/xbmc/dbwrappers/mysqldataset.cpp
@@ -452,6 +452,7 @@ void MysqlDatabase::commit_transaction() {
if (active)
{
mysql_commit(conn);
+ mysql_autocommit(conn, true);
CLog::Log(LOGDEBUG,"Mysql commit transaction");
_in_transaction = false;
}
@@ -461,6 +462,7 @@ void MysqlDatabase::rollback_transaction() {
if (active)
{
mysql_rollback(conn);
+ mysql_autocommit(conn, true);
CLog::Log(LOGDEBUG,"Mysql rollback transaction");
_in_transaction = false;
}