we need to generate valid sql in the not-yet-used "not deleted" mode. Thanks to danapple0++

This commit is contained in:
Jesse Vincent 2009-11-30 04:02:34 +00:00
parent 3126298b46
commit ed4685e82d

View file

@ -1292,7 +1292,7 @@ public class LocalStore extends Store implements Serializable
+ "bcc_list, reply_to_list, attachment_count, internal_date, message_id "
+ "FROM messages "
+ "WHERE "
+ (includeDeleted ? "" : "deleted = 0")
+ (includeDeleted ? "" : "deleted = 0 AND ")
+ " folder_id = ? ORDER BY date DESC"
, new String[]
{