Permalink
Browse files

updating thumb urls in AddActor wasn't working due to a missing exec()

  • Loading branch information...
1 parent ee66d08 commit 7d27fbcc241d86cd4d13b63e748c6b6d8afc07ab Jonathan Marshall committed Feb 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/video/VideoDatabase.cpp
@@ -1198,12 +1198,12 @@ int CVideoDatabase::AddActor(const CStdString& strActor, const CStdString& strTh
}
else
{
- const field_value value = m_pDS->fv("idActor");
- int idActor = value.get_asInt() ;
+ int idActor = m_pDS->fv("idActor").get_asInt();
+ m_pDS->close();
// update the thumb url's
if (!strThumb.IsEmpty())
strSQL=PrepareSQL("update actors set strThumb='%s' where idActor=%i",strThumb.c_str(),idActor);
- m_pDS->close();
+ m_pDS->exec(strSQL.c_str());
return idActor;
}

0 comments on commit 7d27fbc

Please sign in to comment.