Skip to content

Comments

Get attribute values before type casting to fix enum attributes insert#3

Open
carlos-musetti wants to merge 1 commit intomainfrom
fix/enum_values
Open

Get attribute values before type casting to fix enum attributes insert#3
carlos-musetti wants to merge 1 commit intomainfrom
fix/enum_values

Conversation

@carlos-musetti
Copy link

@carlos-musetti carlos-musetti commented Feb 18, 2026

I have a model with an enum.

Screenshot 2026-02-18 at 9 15 01 AM

When trying to insert records into this model, the INSERT INTO tuple would have the cast value (i.e. raw instead of 0), triggering an error since postgresql` expected the value before casting.

@sncalvo
Copy link
Member

sncalvo commented Feb 18, 2026

Can you make a spec to verify usage with enums? @carlos-musetti

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.

2 participants