-
Notifications
You must be signed in to change notification settings - Fork 38
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
"ERROR: operator does not exist: uuid = character varying" #81
Comments
I've spent half my day trying to figure this out... 😭 Edit: Can confirm that the issue is not present on version |
We currently cannot automatically cast parameters. Please try to use explicit casting as described here |
Was going to suggest a regex solution, but I can see that's what you had previously. What was the issue that caused you to remove it?
|
Yes, I think it's a bad idea to implicitly cast something for a user they cannot opt-out from. However, @seawatts is working on a different solution that will allow us to automatically cast parameters based on the knowledge of the entity. |
@ArsenyYankovsky Yes, that's a valid point. In case someone has the same issue as I do but wants to have it fixed in the meantime, I've reintroduced the UUID hack into this fork. This is basically version 2.2.0 including the hack: Be aware, I'll remove this package once a permanent fix is released. |
@ArsenyYankovsky Could you provide an update on the plan for this issue going forward? Will implicit casting always be required for queries involving UUID fields? I found explicit casting of all UUID fields too cumbersome to maintain because the casting syntax doesn't work with other drivers. Our local tests using postgres driver were failing unless each query was special cased for the test environment to remove the |
@AlexBrandes I guess the best solution is to have an option for an easy opt-in. I guess a good start is a configuration option. |
@AlexBrandes @harm-less You should be able to switch the UUID hack on with |
Awesome @ArsenyYankovsky, I've put it on my todo list 😉 |
Package versions and database engine type (please complete the following information):
Describe the bug
Code below makes an invalid request to DataApi
Probably introduced by #77.
The text was updated successfully, but these errors were encountered: