fix crash while searching on a genre limiter

The old regexp failed to prefix cols in such a query:
> .... AND artist_key||album_key||title_key LIKE ?)

We fix this by including the pipe character and matching words (instead of non-spaces)
This commit is contained in:
Adrian Ulrich committed 2015-10-13 21:54:39 +02:00
1 parent fe384e2d79
commit c5d3bc51dc
1 file changed
+1 -1
@@ -208,7 +208,7 @@ public class MediaUtils {
// which shares some columns with audio.
// This regexp should matche duplicate column names and forces them to use
// the audio table as a source
final String _FORCE_AUDIO_SRC = "(^|[ ,\\(])(_id|album(_\\S+)?|artist(_\\S+)?)";
final String _FORCE_AUDIO_SRC = "(^|[ |,\\(])(_id|album(_\\w+)?|artist(_\\w+)?)";
// Prefix the SELECTed rows with the current table authority name
for (int i=0 ;i<clonedProjection.length; i++) {