mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix not correctly treating null columns in where clause
This commit is contained in:
parent
77d8791eb8
commit
f99b79b6b7
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue