mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Query fixes
This commit is contained in:
@@ -62,7 +62,7 @@ public interface DaoAccount {
|
||||
" FROM account" +
|
||||
" LEFT JOIN folder AS drafts ON drafts.account = account.id" +
|
||||
" WHERE :all OR account.synchronize" +
|
||||
" AND drafts.type = '" + EntityFolder.DRAFTS + "'" +
|
||||
" AND (drafts.type = '" + EntityFolder.DRAFTS + "' OR drafts.type IS NULL)" +
|
||||
" GROUP BY account.id" +
|
||||
" ORDER BY CASE WHEN :all THEN 0 ELSE account.`order` END" +
|
||||
", CASE WHEN :all THEN 0 ELSE account.`primary` END DESC" +
|
||||
|
||||
Reference in New Issue
Block a user