Bug #19635 | NULL seems to neither identical or NOT identical to '' (empty string) | ||
---|---|---|---|
Submitted: | 9 May 2006 12:01 | Modified: | 9 May 2006 14:37 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | any | OS: | Any (any) |
Assigned to: | CPU Architecture: | Any |
[9 May 2006 12:01]
Peter Laursen
[9 May 2006 14:26]
Beat Vontobel
> I wonder if I am missing a dimension in my life .... Yes, you do. ;-) The dimension of "unknown" in addition to true and false. NULL in SQL means that a value is not known. Thus also the comparison of that unknown (NULL) value to any other value (for equality or not) will have an unknown result - not true, not false, but unknown! So MySQL does the right thing here according to the standards.
[9 May 2006 14:32]
Peter Laursen
Thanks for the explanation ... I see now!
[9 May 2006 14:37]
MySQL Verification Team
Thank you for the bug report. Already explained.