1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

bug fix: use "1" not "true" for SQL boolean

Ref:  Pull request #355 from @edemaine
This commit is contained in:
Joe Steele 2013-08-02 13:01:22 -04:00
parent 2df436e7bc
commit fcabb7395d

View File

@ -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 {