diff options
author | montellese <montellese@xbmc.org> | 2012-08-09 13:29:45 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2012-08-09 13:29:45 +0200 |
commit | 881cf26b8b1716c3ceda9a3fd7955fb88ad0c86f (patch) | |
tree | 5ee80998fdf101ef9d0ea9f543f19f3d37e546f8 | |
parent | a8cf7db30eae2bc3172f6d5ffa764f718e9e8478 (diff) |
videodb: make sure there's a space before the "where" in the SQL queries of SetDetailsForTvShow and SetDetailsForEpisode
-rw-r--r-- | xbmc/video/VideoDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp index 3f7a950cf6..818d3bc3fe 100644 --- a/xbmc/video/VideoDatabase.cpp +++ b/xbmc/video/VideoDatabase.cpp @@ -2049,7 +2049,7 @@ int CVideoDatabase::SetDetailsForTvShow(const CStdString& strPath, const CVideoI // and insert the new row CStdString sql = "update tvshow set " + GetValueString(details, VIDEODB_ID_TV_MIN, VIDEODB_ID_TV_MAX, DbTvShowOffsets); - sql += PrepareSQL("where idShow=%i", idTvShow); + sql += PrepareSQL(" where idShow=%i", idTvShow); m_pDS->exec(sql.c_str()); CommitTransaction(); @@ -2124,7 +2124,7 @@ int CVideoDatabase::SetDetailsForEpisode(const CStdString& strFilenameAndPath, c // and insert the new row CStdString sql = "update episode set " + GetValueString(details, VIDEODB_ID_EPISODE_MIN, VIDEODB_ID_EPISODE_MAX, DbEpisodeOffsets); - sql += PrepareSQL("where idEpisode=%i", idEpisode); + sql += PrepareSQL(" where idEpisode=%i", idEpisode); m_pDS->exec(sql.c_str()); CommitTransaction(); |