mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Treat empty string columns as missing (#852)
This commit is contained in:
@@ -327,7 +327,7 @@ func (qb *ImageQueryBuilder) Query(imageFilter *ImageFilterType, findFilter *Fin
|
||||
case "tags":
|
||||
query.addWhere("tags_join.image_id IS NULL")
|
||||
default:
|
||||
query.addWhere("images." + *isMissingFilter + " IS NULL")
|
||||
query.addWhere("images." + *isMissingFilter + " IS NULL OR TRIM(images." + *isMissingFilter + ") = ''")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user