Skip to content

Commit

Permalink
CDatabase::CommitInsertQueries() - only return false on error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrohard committed Oct 30, 2012
1 parent 65b6a3c commit 8af783b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/dbwrappers/Database.cpp
Expand Up @@ -287,7 +287,7 @@ bool CDatabase::QueueInsertQuery(const CStdString &strQuery)

bool CDatabase::CommitInsertQueries()
{
bool bReturn = false;
bool bReturn = true;

if (m_bMultiWrite)
{
Expand All @@ -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__);
}
Expand Down

0 comments on commit 8af783b

Please sign in to comment.