Bug #107096 | Conflicting statements re NULL and TIMESTAMP | ||
---|---|---|---|
Submitted: | 22 Apr 2022 9:17 | Modified: | 25 Apr 2022 19:32 |
Reporter: | hanzhong zhang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S2 (Serious) |
Version: | ALL | OS: | Any (CentOS Linux release 7.9.2009 (Core) 3.10.0-1160.el7.x86_64) |
Assigned to: | Jon Stephens | CPU Architecture: | Any ( Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz) |
Tags: | null, timestamp |
[22 Apr 2022 9:17]
hanzhong zhang
[22 Apr 2022 13:04]
MySQL Verification Team
Hello hanzhong zhang, Thank you for the report and feedback. regards, Umesh
[25 Apr 2022 19:32]
Jon Stephens
你好! The exact behaviour of NULL + TIMESTAMP is dependent on a number of factors, including the server SQL mode and the value of the explicit_defaults_for_timestamp system variable (note the default value changes from OFF in 5.7 to ON in MySQL 8.0). I have updated this item in all versions of the Manual to make this clearer. Thanks for pointing this out! Closed.