Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Jan 9, 2025

Roundtripping arrays of enums would fail because we would read an array of enums back as a single string "{yellow,red,BLUE}" instead of the array ["yellow", "red", "BLUE"]. Storing an update to such an entity, even if users make no changes to that field, would fail because Postgres expects an array and we were sending a scalar value.

This fixes a bug introduced in PR
#5372

Roundtripping arrays of enums would fail because we would read an array of
enums back as a single string "{yellow,red,BLUE}" instead of the array
["yellow", "red", "BLUE"]. Storing an update to such an entity, even if
users make no changes to that field, would fail because Postgres expects an
array and we were sending a scalar value.

This fixes a bug introduced in PR
#5372
@lutter lutter merged commit fea46ab into master Jan 10, 2025
6 checks passed
@lutter lutter deleted the lutter/enums branch January 10, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants