You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a postgres enum called status_type with string values, and I used it to set the column type on a column in a table. I want to filter by inclusion on it: root.where(root[:status].in('requested')), and it returns a dry-types constraint error:
Describe the bug
I have a postgres enum called
status_type
with string values, and I used it to set the column type on a column in a table. I want to filter by inclusion on it:root.where(root[:status].in('requested'))
, and it returns a dry-types constraint error:It's weird because if I filter by equality it works ok.
root.where(root[:status].is('requested'))
As a workaround I defined the attribute with type string in the relation schema and now it works.
To Reproduce
in
operatorExpected behavior
Your environment
Zulip conversation link here
The text was updated successfully, but these errors were encountered: