Bug #102776 | insert into select on tinyint type, no warning, but with wrong result | ||
---|---|---|---|
Submitted: | 2 Mar 2021 7:10 | Modified: | 3 Mar 2021 15:52 |
Reporter: | tong gao | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 8.0.22 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[2 Mar 2021 7:10]
tong gao
[3 Mar 2021 15:52]
MySQL Verification Team
Hi Mr. gao, Thank you for your bug report. However, this is not a bug. What you describe is exactly how MySQL database server is designed. When it can not insert (or change) the value into a column, due to underflow or overflow, it does not stop transaction, but continues with a warning that is reported. All that user has to do is to view the warnings. It is so by design. Strict type checking will not be implemented soon, since it would brake millions of applications. Hence .... Not a bug.