Why zero values not NULL? #285
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Because it makes sense to disable the feature that some users don't want or don't expect. See https://bun.uptrace.dev/guide/models.html#modeling-null-values |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Coming from
go-pgI've always had zero values saved asNULLin postgres.Can I ask you why did you decide to change this in Bun?
Is there an advantage in some sense? Performances? Disk space?
And how do I filter now? Example: if I have a
time.Timecolumn now the value in DB is0001-01-01 00:00:00+00instead ofNULL.Before I was using something like
where date != NULL, what to do now? Maybewhere date > 0001-01-01 00:00:00+00?Beta Was this translation helpful? Give feedback.
All reactions