Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 5e977f3a authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #6282 from thundernest/fix_search_bug

Fix bug in SQL query used for search
parents 65b57387 2c94dc6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -66,7 +66,7 @@ public class SqlQueryBuilder {
                    if (condition.attribute != Attribute.CONTAINS) {
                    if (condition.attribute != Attribute.CONTAINS) {
                        Timber.e("message contents can only be matched!");
                        Timber.e("message contents can only be matched!");
                    }
                    }
                    query.append("m.id IN (SELECT docid FROM messages_fulltext WHERE fulltext MATCH ?)");
                    query.append("messages.id IN (SELECT docid FROM messages_fulltext WHERE fulltext MATCH ?)");
                    selectionArgs.add(fulltextQueryString);
                    selectionArgs.add(fulltextQueryString);
                    break;
                    break;
                }
                }
+0 −1
Original line number Original line Diff line number Diff line
package com.fsck.k9.storage.messages
package com.fsck.k9.storage.messages


import android.database.Cursor
import android.database.Cursor
import com.fsck.k9.helper.map
import com.fsck.k9.mail.Address
import com.fsck.k9.mail.Address
import com.fsck.k9.mailstore.DatabasePreviewType
import com.fsck.k9.mailstore.DatabasePreviewType
import com.fsck.k9.mailstore.LockableDatabase
import com.fsck.k9.mailstore.LockableDatabase