-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Enum Array doesn't work with nativeEnumName #5322
Comments
This might be a bit tricky, it feels like knex does not support native enum arrays at all, haven't found a single issue on their end, and I don't see a way to even set up such a column (only via This does not mean there is no way around it, but it complicates things - we will need to implement some things that knex is doing (but better, lol), so we don't use Edit: turns out its pretty simple change, will finalize it later today |
@B4nan Thank you so much for the quick updates. |
@B4nan
|
I knew it will be more tricky :D |
@B4nan Will test again once it's released. Again, thank you so much for your efforts. |
Btw you can test the dev version already, every commit to master gets published. |
Describe the bug
Enum Array doesn't work with nativeEnumName
Reproduction
This creates
But this produces
It's missing the
[]
after TenantFeatureFlag.The update query then fails with
DriverException ... '{feat1, feat2}' ... - invalid input value for enum "TenantFeatureFlag": "{feat1,feat2}"
Using Reflect Metadata, and swc with the recommended settings.
I can provide more reproduction, if the bug is not obvious.
What driver are you using?
@mikro-orm/postgresql
MikroORM version
6.1.6
Node.js version
20.11.1 LTS
Operating system
Ubuntu 23.04
Validations
The text was updated successfully, but these errors were encountered: