Skip to content

Commit

Permalink
Merge branch 'GH-2483_backport' into 5.2-MAINT
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Apr 13, 2017
2 parents 06df279 + 89ffb84 commit 8b79760
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static void buildWhereClauseInternal(Account account, ConditionsTreeNode
if (condition.attribute != Attribute.CONTAINS) {
Log.e(K9.LOG_TAG, "message contents can only be matched!");
}
query.append("(EXISTS (SELECT docid FROM messages_fulltext WHERE docid = id AND fulltext MATCH ?))");
query.append("m.id IN (SELECT docid FROM messages_fulltext WHERE fulltext MATCH ?)");
selectionArgs.add(fulltextQueryString);
break;
}
Expand Down

0 comments on commit 8b79760

Please sign in to comment.