-
Notifications
You must be signed in to change notification settings - Fork 28
Empty binary value can have two results in postgresql database #54
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
Comments
A few additional information we gathered when debuging this with @immae.
I'm wondering how to fix that:
|
I understand it now.
But when |
We seem to have different treatment for Bytestrings as handled by LibPQ:
Now if you look in the table, you’ll have one NULL column and one with an empty bytea content
This seem to come from the fact that mempty and "" have different internal representation in Haskell, in spite of being equal:
(requires OverloadedStrings)
This difference of treatment seem to be introduced by commit
89c7cb8
Reverting that commit indeed stores the two different values as an empty bytea.
The text was updated successfully, but these errors were encountered: