mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Fix image_locations column used in where clause but not joined
This commit is contained in:
parent
10b263834d
commit
77d8791eb8
1 changed files with 3 additions and 2 deletions
|
@ -118,10 +118,11 @@ class FilesQueryBuilder {
|
|||
if (_queryMode == FilesQueryMode.completeFile) ...[
|
||||
leftOuterJoin(
|
||||
db.images, db.images.accountFile.equalsExp(db.accountFiles.rowId)),
|
||||
leftOuterJoin(db.imageLocations,
|
||||
db.imageLocations.accountFile.equalsExp(db.accountFiles.rowId)),
|
||||
leftOuterJoin(db.trashes, db.trashes.file.equalsExp(db.files.rowId)),
|
||||
],
|
||||
if (_queryMode == FilesQueryMode.completeFile || _byLocation != null)
|
||||
leftOuterJoin(db.imageLocations,
|
||||
db.imageLocations.accountFile.equalsExp(db.accountFiles.rowId)),
|
||||
]) as JoinedSelectStatement;
|
||||
if (_queryMode == FilesQueryMode.expression) {
|
||||
query.addColumns(_selectExpressions!);
|
||||
|
|
Loading…
Reference in a new issue