From 83b31d3c890b63ef2fe079c6c71a23b9234de8d2 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 18 May 2023 22:44:42 -0600 Subject: [PATCH] Casting both sides of the comparison to text arrays. --- wrolpi/files/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index a3afc7f2..472efc2f 100644 --- a/wrolpi/files/lib.py +++ b/wrolpi/files/lib.py @@ -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)