Refactoring

This commit is contained in:
M66B
2020-08-20 22:43:42 +02:00
parent 24b6da0598
commit 9be5a82e0e
3 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ public interface DaoAccount {
" FROM identity" +
" WHERE identity.account = account.id" +
" AND identity.synchronize) AS identities" +
", CASE WHEN drafts.id IS NULL THEN 0 ELSE 1 END AS drafts" +
", drafts.id AS drafts" +
" FROM account" +
" LEFT JOIN folder AS drafts ON drafts.account = account.id AND drafts.type = '" + EntityFolder.DRAFTS + "'" +
" WHERE :all OR account.synchronize" +