We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2ad59f commit a877b90Copy full SHA for a877b90
ckanext/datastore/backend/postgres.py
@@ -601,10 +601,10 @@ def _where_clauses(
601
# this fixes parity there.
602
value = (str(v) for v in value)
603
clause = (clause_str, dict(zip(placeholders, value)))
604
- elif isinstance(value, str) and field_array_type:
+ elif type(value) in (str, int, float) and field_array_type:
605
# (canada fork only): transform string filters for _text type
606
# TODO: upstream contrib!!
607
- value = [v.strip() for v in value.split(',')]
+ value = [v.strip() for v in str(value).split(',')]
608
placeholders = [
609
f"value_{next(idx_gen)}" for _ in value
610
]
0 commit comments