Bug #94741 | SQL mode error catching the wrong updated column | ||
---|---|---|---|
Submitted: | 22 Mar 2019 5:26 | Modified: | 2 May 2019 13:21 |
Reporter: | Juan Carlos Polanco Aguilar | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.7.18 | OS: | CentOS (7.4) |
Assigned to: | CPU Architecture: | x86 (2vCPU x 4GB RAM) | |
Tags: | Sql mode strict STRICT_TRANS_TABLES |
[22 Mar 2019 5:26]
Juan Carlos Polanco Aguilar
[26 Mar 2019 15:06]
MySQL Verification Team
HI, Thank you for your report. However, I truly fail to see what is the bug here ...... Your sql_mode prohibits zero dates and zero in dates, but zeroes are not inserted in your DATE columns. NULL is. Hence, I do not think that this is a bug !!!!
[27 Mar 2019 0:47]
Juan Carlos Polanco Aguilar
Thank you for your response Sinisa Milivojevic. However, the error message was not for zero dates nor zero in dates. The error was for a column: `status` tinyint(4) NOT NULL DEFAULT '0', and the error message: ERROR 1048 (23000): Column 'status' cannot be null while I updated: update `test1` set ... `status` = 0, ... but the updated data was not NULL. It was a zero. Hope you could understand my explanation. Thank you again for your response!
[27 Mar 2019 13:29]
MySQL Verification Team
Hi, First of all, always try using latest release for the given version, which in your case is 5.7.25. Second, please try not to use quotes for defaults in numeric values. Try without quotes and 5.7.25 and let us know the result.
[28 Apr 2019 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".