-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
Bug Report: UUID Casting Issue in Drizzle KIT with PostgreSQL preventing updates and deletes #3409
Comments
It does seem that ServerlessV2 indeed needs an explicit |
However, using ORM in my code, I'm not having trouble, which is why I thought it was something related to the drizzle studio. |
@angelgarrido in your ORM code are you explicitly casting to |
I am getting the same when trying to update or delete a record in the studio. Followed this https://ion.sst.dev/docs/start/aws/drizzle/. DatabaseErrorException: ERROR: operator does not exist: uuid = text; Hint: No operator matches the given name and argument types. You might need to add explicit type casts.; Position: 54; SQLState: 42883 |
Me too |
@ludu12 This is not using ORM in my implementation. My implementation works fine, this problem is directly using drizzle-kit studio in a web browser, It seems is not casting :uuid. |
Following, this is also an issue for me using the Drizzle Studio web application, attempting to manually edit or delete records which have a UUID primary key. |
Probably related to #2232 |
Same issue for me. |
What is the status for this bug? |
Same issue 🥲 |
Bug Report: UUID Casting Issue in Drizzle Kit (Studio) with PostgreSQL
Issue Description
It seems the system is not casting correctly UUID fields as ::UUID, and that prevents update or deleting created records using drizzle-kit studio.
Environment
@aws-sdk/client-rds-data
:^3.577.0
drizzle-kit
:^0.21.1-674c9c2
drizzle-orm
:^0.30.10
Configuration
Model Definition
Detailed error messages
These are the error details from frontend and backend:
And this error in backend:
This issue seems to be related to UUID handling in Drizzle kit. Please investigate and advise on any potential fixes or workarounds. Thank you!
The text was updated successfully, but these errors were encountered: