Permalink
Browse files

fix: clean database will fail on Mysql

  • Loading branch information...
amet committed Jun 30, 2011
1 parent 10e3d08 commit 4241e8cef2583b627776d8bbefc89af76af8e9e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/video/VideoDatabase.cpp
@@ -6491,7 +6491,7 @@ void CVideoDatabase::CleanDatabase(IVideoInfoScannerObserver* pObserver, const v
// Add any files that don't have a valid idPath entry to the filesToDelete list.
sql = "select files.idFile from files where idPath not in (select idPath from path)";
- m_pDS->exec(sql.c_str());
+ m_pDS->query(sql.c_str());
while (!m_pDS->eof())
{
filesToDelete += m_pDS->fv("files.idFile").get_asString() + ",";

0 comments on commit 4241e8c

Please sign in to comment.