-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
After Sequelize v3.13, I cannot make DataTypes.ARRAY(DataTypes.STRING) work in Postgres #5401
Comments
Please include the call you're doing an the entire stack trace, you're giving us extremely little to go on. |
Sure. Here's the stack trace:
This happens in both Windows and Mac (platform independent). Thank you. |
Your default value should be an actual array instead of a string: |
I am also having issue with Array datatypes with MSSQL , when i updated sequelize version from 5.12.3->6.37.3 Error: Conversion failed for value string, parameter 9 |
As far as I know DataTypes.ARRAY(DataTypes.STRING) is only supported for postgres, see https://sequelize.org/docs/v6/other-topics/other-data-types/#arrays-postgresql-only |
Thanks @WikiRik for your response. I have updated types in my model then. |
Hi,
My model work for sequelize v3.13, but starting with v3.14 and later, it does not work.
Corresponding postgres datatype (using postgres 9.4): character varying(255)[]
Error:
[TypeError: values.map is not a function]
Is this a regression issue?
The text was updated successfully, but these errors were encountered: