GNOME Bugzilla – Bug 555120
Genre rules do not work
Last modified: 2009-01-11 19:47:24 UTC
Please describe the problem: Smart Playlist Genre rules (such as "Genre is Pop") simply doesn't work. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
It looks like the "Genre is Pop" condition is translated into the following SQL : CoreTracks.Genre = 'pop' AND CoreTracks.Genre IS NOT NULL This should probably not be case-sensitive.
Ivan, is the issue that it's case sensitive?
(In reply to comment #2) > Ivan, is the issue that it's case sensitive? > The genre search should be case insensitive yes. Looking at what Bertrand wrote about the query it seems banshee doesn't perform a case insensitive search also lower-cases the genre search word.
I've been looking at the code, and I think the problem is in QueryField. In the line 159, why is caseSensitive negated? Shouldn't the condition just be (column_lowered || caseSensitive) ????
Created attachment 122696 [details] [review] Correct case sensitivity Case sensitivity flag was negated, reversing the expected functionality
Felix's patch seems correct to me (and works, too, assuming == is supposed to be case-insensitive in the search field).
Got approval from Gabriel to commit this patch after the current freeze (I'm not sure when that will be). Marking patch to indicate this.
Thanks for the patch Felix, I committed a slight variant on it.
*** Bug 567403 has been marked as a duplicate of this bug. ***