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
{{ message }}
Repository navigation
[Postgres] Array of enum is sometime returned as a string #14329
I've just tested this using the following code, but unfortunately was not able to replicate the issue. It was using Sequelize 6.19.2, postgres 14.3, pg 8.7.3, so the issue may already be fixed.
If you can replicate this in 6.19.2 (or newer), could you post the exact code you used for it?
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Activity
mi-mazouz commentedon Apr 6, 2022
My current workaround 😂
ephys commentedon Apr 6, 2022
For reference, at time of writing, that's postgres 14.2
ephys commentedon May 20, 2022
I've just tested this using the following code, but unfortunately was not able to replicate the issue. It was using Sequelize 6.19.2, postgres 14.3, pg 8.7.3, so the issue may already be fixed.
If you can replicate this in 6.19.2 (or newer), could you post the exact code you used for it?
github-actions commentedon Jun 4, 2022
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
fegauthier commentedon Nov 25, 2022
Hi guys!
I have the same issue. It's random. Sometimes Sequelize return it as an Array and most of the time as a String.
Console.log of User findOne
User model
My sequelize version is 6.21.3
My Postgres version is PostgreSQL 14
My pg version is 8.7.3
fegauthier commentedon Dec 15, 2022
Same issue with sequelize version 6.25.8