From fcabb7395dbccd90737ee6b0db3a0afc90aa419e Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Fri, 2 Aug 2013 13:01:22 -0400 Subject: [PATCH] bug fix: use "1" not "true" for SQL boolean Ref: Pull request #355 from @edemaine --- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index c60854bc9..8756fe5ee 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -1571,7 +1571,7 @@ public class LocalStore extends Store implements Serializable { public Integer doDbWork(final SQLiteDatabase db) throws WrappedException { int flaggedMessageCount = 0; Cursor cursor = db.query("messages", new String[] { "COUNT(id)" }, - "folder_id = ? AND (empty IS NULL OR empty != 1) AND deleted = 0 AND flagged IS true", + "folder_id = ? AND (empty IS NULL OR empty != 1) AND deleted = 0 AND flagged = 1", new String[] { Long.toString(mFolderId) }, null, null, null); try {