Fix not correctly treating null columns in where clause

This commit is contained in:
Ming Ming 2023-12-10 16:59:29 +08:00
parent 77d8791eb8
commit f99b79b6b7

View file

@ -170,7 +170,8 @@ class FilesQueryBuilder {
query.where(db.accountFiles.isFavorite.equals(true)); query.where(db.accountFiles.isFavorite.equals(true));
} else { } else {
// null are treated as false // null are treated as false
query.where(db.accountFiles.isFavorite.equals(true).not()); query.where(db.accountFiles.isFavorite.equals(false) |
db.accountFiles.isFavorite.isNull());
} }
} }
if (_byDirRowId != null) { if (_byDirRowId != null) {