New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(postgres): Support enum array #13592
Conversation
@codemers Can you look into the tests and rebase your branch? |
Is this by any chance the same as #13807 ? |
cc @nahog |
Yes, this is the same issue, but the PR here only works for public as is not passing the schema if its redefined, the #13807 fix handle both scenarios, when is using the public/empty schema, that both: @codemers try the current |
@codemers 6.12.2 was just released with a fix for this issue. Please try that version and if it works this bug can be probably closed. |
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description of change
Currently when dealing with an array of enum using the Postgres dialect, Sequelize generates an invalid enumeration cast key while inserting data.
Related issue (I think): #4048
DDL of the table:
DDL of the type
Then while inserting data here's the cast key generated by sequelize:
The correct cast key should be:
This pr fixes this issue.