mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
bug fix: use "1" not "true" for SQL boolean
Ref: Pull request #355 from @edemaine
This commit is contained in:
parent
2df436e7bc
commit
fcabb7395d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user