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:
@@ -362,7 +362,7 @@ func (qb *SceneQueryBuilder) Query(sceneFilter *SceneFilterType, findFilter *Fin
|
||||
case "tags":
|
||||
query.addWhere("tags_join.scene_id IS NULL")
|
||||
default:
|
||||
query.addWhere("scenes." + *isMissingFilter + " IS NULL")
|
||||
query.addWhere("scenes." + *isMissingFilter + " IS NULL OR TRIM(scenes." + *isMissingFilter + ") = ''")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user