[banshee] Fix bug in generating the ArtistNameSortKey
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] Fix bug in generating the ArtistNameSortKey
- Date: Wed, 27 Jan 2010 19:36:55 +0000 (UTC)
commit 08f93be3d262c4716b2f8ec221659e135a2bff38
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Jan 27 11:25:26 2010 -0800
Fix bug in generating the ArtistNameSortKey
It wasn't using the ArtistNameSort field at all, which it should prefer
if it exists.
.../Banshee.Database/SortKeyUpdater.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs b/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
index ed272cc..0982868 100644
--- a/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
+++ b/src/Core/Banshee.Services/Banshee.Database/SortKeyUpdater.cs
@@ -58,7 +58,7 @@ namespace Banshee.Database
UPDATE CoreAlbums SET
TitleSortKey = HYENA_COLLATION_KEY(COALESCE(TitleSort, Title, ?)),
- ArtistNameSortKey = HYENA_COLLATION_KEY(COALESCE(ArtistName, ?)),
+ ArtistNameSortKey = HYENA_COLLATION_KEY(COALESCE(ArtistNameSort, ArtistName, ?)),
TitleLowered = HYENA_SEARCH_KEY(COALESCE(Title, ?)),
ArtistNameLowered = HYENA_SEARCH_KEY(COALESCE(ArtistName, ?));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]