Permalink
Browse files

Remove a useless join in season_view

  • Loading branch information...
phate89 committed Nov 11, 2015
1 parent 0d8015f commit e4188deee7675b89258cb18a25f90b573218eac5
Showing with 6 additions and 6 deletions.
  1. +6 −6 xbmc/video/VideoDatabase.cpp
@@ -408,16 +408,16 @@ void CVideoDatabase::CreateViews()
" tvshow_view.c%02d AS genre,"
" tvshow_view.c%02d AS studio,"
" tvshow_view.c%02d AS mpaa,"
" count(DISTINCT episode_view.idEpisode) AS episodes,"
" count(DISTINCT episode.idEpisode) AS episodes,"
" count(files.playCount) AS playCount,"
" min(episode_view.c%02d) AS aired "
" min(episode.c%02d) AS aired "
"FROM seasons"
" JOIN tvshow_view ON"
" tvshow_view.idShow = seasons.idShow"
" JOIN episode_view ON"
" episode_view.idShow = seasons.idShow AND episode_view.c%02d = seasons.season"
" JOIN episode ON"
" episode.idShow = seasons.idShow AND episode.c%02d = seasons.season"
" JOIN files ON"
" files.idFile = episode_view.idFile "
" files.idFile = episode.idFile "
"GROUP BY seasons.idSeason",
VIDEODB_ID_TV_TITLE, VIDEODB_ID_TV_PLOT, VIDEODB_ID_TV_PREMIERED,
VIDEODB_ID_TV_GENRE, VIDEODB_ID_TV_STUDIOS, VIDEODB_ID_TV_MPAA,
@@ -4684,7 +4684,7 @@ void CVideoDatabase::UpdateTables(int iVersion)

int CVideoDatabase::GetSchemaVersion() const
{
return 99;
return 100;
}

bool CVideoDatabase::LookupByFolders(const std::string &path, bool shows)

0 comments on commit e4188de

Please sign in to comment.