Casting both sides of the comparison to text arrays.

This commit is contained in:
Roland 2023-05-18 22:44:42 -06:00
parent bc2ca0e512
commit 83b31d3c89
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -694,7 +694,7 @@ def tag_names_to_sub_select(names: List[str]) -> Tuple[str, dict]:
LEFT JOIN tag t on t.id = tf.tag_id
GROUP BY file_group_id
-- Match only FileGroups that have at least all the Tag names.
HAVING array_agg(t.name) @> %(tag_names)s::VARCHAR[]
HAVING array_agg(t.name)::TEXT[] @> %(tag_names)s::TEXT[]
'''
return stmt, dict(tag_names=names)