mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Casting both sides of the comparison to text arrays.
This commit is contained in:
parent
bc2ca0e512
commit
83b31d3c89
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue