-
Notifications
You must be signed in to change notification settings - Fork 13
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
decoding number to bigint returns wrong number #11
Comments
You're using a wrong codec.
|
@nikita-volkov I know it's the wrong codec, but the issue is deeper, because postgresql is not statically typed. It's a slippery slope:
Could |
This is why |
I'm slowly seeing the benefit of going that far :) @nikita-volkov does the wire protocol include the type that PostgreSQL is returning? |
If I remember correctly it does include the type's OID. Since I sense I get what you're gonna suggest, I've created a dedicated issue: nikita-volkov/hasql#97 |
I've hit this bug again after months in production :/ |
I strongly suggest adding explicit casts to all your queries to guarantee that the result matches what hasql will expect. This is what we do in our query DSL |
Well, as mentioned in the linked thread, I'm open to PRs :) Unfortunately this issue is low on my priority list |
The text was updated successfully, but these errors were encountered: