Bug #62482 | SQL_MODE=SENSIBLE_NULLS to take the headaches out of null. | ||
---|---|---|---|
Submitted: | 20 Sep 2011 17:18 | Modified: | 22 Sep 2011 18:34 |
Reporter: | John Boero | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S4 (Feature request) |
Version: | 5.1.40sp1-enterprise-gpl-advanced | OS: | Any (Any version) |
Assigned to: | CPU Architecture: | Any | |
Tags: | concat, is vs =, SENSIBLE NULL, SQL_MODE |
[20 Sep 2011 17:18]
John Boero
[20 Sep 2011 17:23]
John Boero
Referencing threads/notes: http://forums.mysql.com/read.php?97,109881,109881 http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html
[20 Sep 2011 22:34]
Peter Gulutzan
Looks like a duplicate of Bug#31131.
[22 Sep 2011 18:34]
John Boero
Similar, but it's more the inverse of #31131. 31131 says "treat empty string as null" for purposes of fields tagged NOT NULL. I say basically the opposite: "treat null as empty string" for concat and comparison purposes.