-
Notifications
You must be signed in to change notification settings - Fork 23
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
managment of NULL #49
Comments
A better solution could be a |
I finally decided that the when a column of type string may be null, then the empty string is equivalent to null. This mostly solved the issue. This is a good choice if using html form, when the empty string and undefined can not be distinguished. I hesitate to close myself ... just leave a bit of time for someone to comment, before. |
Chiming in... I was wondering why Scratching my head, maybe I'm doing something wrong? |
I have made |
I would suggest to use Postgresql.null for null value. This way physical equality
can distinguish the NULL value and the empty string. Accessing the result to know is a parameter is NULL is
a bit annoying.
This is relatively fragile as OCaml could decide to share the representation of the null string. This is not done in 5.0.0.
But even in this case, Postgresl.null could be created from C or in other ways to avoid sharing.
The text was updated successfully, but these errors were encountered: