Casting column to enum type
Hi all,
I create a schema like this:
However, when i run
I get the following error:
Why is this happening? Shouldn't drizzle manage the casting for me? The value for type being passed in is just a string, but I feel like this should be mapped automatically, correct?
3 Replies
GitHub
GitHub - patrick-geyer-21/drizzle-bug
Contribute to patrick-geyer-21/drizzle-bug development by creating an account on GitHub.
I have created the repo for the potential bug here
@Andrew Sherman maybe you could take a look?
@Turso I can offer a bounty on this if someone can tell me the solution.
Not sure if it is related,
But it could be:
https://discord.com/channels/1043890932593987624/1120919676457848946/1120919676457848946
For myself i stop using pgEnum with AWS Data API, and use just text strings and control the enums in my code validation.
If anyone has been able to solve that, can just post how?