Use proper table name in SqlQueryBuilder

This commit is contained in:
cketti 2022-09-07 17:10:05 +02:00
parent 58281359a7
commit 2c94dc6d08
2 changed files with 1 additions and 2 deletions

View file

@ -66,7 +66,7 @@ public class SqlQueryBuilder {
if (condition.attribute != Attribute.CONTAINS) {
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);
break;
}

View file

@ -1,7 +1,6 @@
package com.fsck.k9.storage.messages
import android.database.Cursor
import com.fsck.k9.helper.map
import com.fsck.k9.mail.Address
import com.fsck.k9.mailstore.DatabasePreviewType
import com.fsck.k9.mailstore.LockableDatabase