aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Amland <thomas.amland@gmail.com>2016-03-26 11:49:02 +0100
committerThomas Amland <thomas.amland@gmail.com>2016-03-26 11:49:02 +0100
commit3c3aea47a34a4e5b24c2c7bad164543e470288ac (patch)
treee468997e3184f414b905b09cb61e91eccb94507a
parent6d79bb7c66d3b03f43c4a0677e7938437ae36e91 (diff)
[database] fix old queries not cleared after multiple execute
-rw-r--r--xbmc/dbwrappers/Database.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/dbwrappers/Database.cpp b/xbmc/dbwrappers/Database.cpp
index ab50175dc3..3982ae33dc 100644
--- a/xbmc/dbwrappers/Database.cpp
+++ b/xbmc/dbwrappers/Database.cpp
@@ -186,6 +186,7 @@ bool CDatabase::DeleteValues(const std::string &strTable, const Filter &filter /
bool CDatabase::BeginMultipleExecute()
{
m_multipleExecute = true;
+ m_multipleQueries.clear();
return true;
}
@@ -201,7 +202,7 @@ bool CDatabase::CommitMultipleExecute()
return false;
}
}
-
+ m_multipleQueries.clear();
return CommitTransaction();
}