Permalink
Browse files

Merge pull request #4012 from koying/quickpr

FIX: [mysql] fix database export (fixes #14843)
  • Loading branch information...
2 parents 67f08be + fb0064d commit 756598be794ffd724ff03219cff9439353f6170f @koying koying committed Jan 12, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/music/MusicDatabase.cpp
View
4 xbmc/music/MusicDatabase.cpp
@@ -4915,7 +4915,7 @@ void CMusicDatabase::ExportToXML(const CStdString &xmlFile, bool singleFiles, bo
// find all albums
vector<int> albumIds;
- CStdString sql = "select idAlbum FROM album WHERE lastScraped NOT NULL";
+ CStdString sql = "select idAlbum FROM album WHERE lastScraped IS NOT NULL";
m_pDS->query(sql.c_str());
int total = m_pDS->num_rows();
@@ -5002,7 +5002,7 @@ void CMusicDatabase::ExportToXML(const CStdString &xmlFile, bool singleFiles, bo
// find all artists
vector<int> artistIds;
- CStdString artistSQL = "SELECT idArtist FROM artist where lastScraped NOT NULL";
+ CStdString artistSQL = "SELECT idArtist FROM artist where lastScraped IS NOT NULL";
m_pDS->query(artistSQL.c_str());
total = m_pDS->num_rows();
current = 0;

0 comments on commit 756598b

Please sign in to comment.