Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CDatabase::CommitInsertQueries() - only return false on error

  • Loading branch information...
commit 8af783bbacabdedab068157f704cab67e7e7e2ce 1 parent 65b6a3c
Jernej Fijačko authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/dbwrappers/Database.cpp
4 xbmc/dbwrappers/Database.cpp
View
@@ -287,7 +287,7 @@ bool CDatabase::QueueInsertQuery(const CStdString &strQuery)
bool CDatabase::CommitInsertQueries()
{
- bool bReturn = false;
+ bool bReturn = true;
if (m_bMultiWrite)
{
@@ -296,10 +296,10 @@ bool CDatabase::CommitInsertQueries()
m_bMultiWrite = false;
m_pDS2->post();
m_pDS2->clear_insert_sql();
- bReturn = true;
}
catch(...)
{
+ bReturn = false;
CLog::Log(LOGERROR, "%s - failed to execute queries",
__FUNCTION__);
}
Please sign in to comment.
Something went wrong with that request. Please try again.