diff --git a/Marr.Data/QGen/SqlitePagingQueryDecorator.cs b/Marr.Data/QGen/SqlitePagingQueryDecorator.cs index b1681d3b0..d9aedc1da 100644 --- a/Marr.Data/QGen/SqlitePagingQueryDecorator.cs +++ b/Marr.Data/QGen/SqlitePagingQueryDecorator.cs @@ -154,7 +154,7 @@ private void BuildGroupBy(StringBuilder sql) var baseTable = _innerQuery.Tables.First(); var primaryKeyColumn = baseTable.Columns.Single(c => c.ColumnInfo.IsPrimaryKey); - string token = _innerQuery.Dialect.CreateToken(string.Concat(baseTable.Alias, ".", _innerQuery.NameOrAltName(primaryKeyColumn.ColumnInfo))); + string token = _innerQuery.Dialect.CreateToken(string.Concat(baseTable.Alias, ".", primaryKeyColumn.ColumnInfo.Name)); sql.AppendFormat(" GROUP BY {0}", token); } } diff --git a/NzbDrone.Core/Tv/EpisodeService.cs b/NzbDrone.Core/Tv/EpisodeService.cs index 1d79c2c29..3bfd7e55c 100644 --- a/NzbDrone.Core/Tv/EpisodeService.cs +++ b/NzbDrone.Core/Tv/EpisodeService.cs @@ -62,7 +62,6 @@ public EpisodeService(IProvideEpisodeInfo episodeInfoProxy, ISeasonRepository se _logger = logger; } - public Episode GetEpisode(int id) { return _episodeRepository.Get(id);