-
Notifications
You must be signed in to change notification settings - Fork 39
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
AWS Data API (PG) Enum Casting Issue #80
Comments
We currently cannot automatically cast parameters. Please try to use explicit casting as described here |
Thank you! Completely missed the explicit cast ability in the docs. This solves my immediately problem but it is worth noting for whomever else runs into this, that the explicit casting doesn't seem to work when using TypeORM's Regardless, thanks for all the effort you've put into this driver; it is very much appreciated. |
I'm still seeing this issue as well with the new auto casting |
Any updates on this? |
I'm still having this problem, any updates or workarounds ? |
2023, this is still an issue for SIMPLE enum casting. I had to change my query from this:
to this:
why is this such a big deal to resolve? I really don't get it. Note: The solution provided for explicit casting does not show any example for enum type casting, only for |
Package versions and database engine type (please complete the following information):
Describe the bug
Entities that have
enum
column types cause errors when trying to query the database where the enum column is in theWHERE
criteria. The error is caused because the enum column criteria value is not cast correctly.To Reproduce
https://github.com/veho-technologies/typeorm-data-api-enum-issue
The above repo describes and demonstrates the issue.
Example error:
The text was updated successfully, but these errors were encountered: