Bug #100309 | TINYINT(1) UNSIGNED not treated as Boolean | ||
---|---|---|---|
Submitted: | 23 Jul 2020 18:56 | Modified: | 29 Jun 2021 8:55 |
Reporter: | Jean-Marc Marchand | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 8.0.19, 8.0.20, 8.0.21 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | boolean, regression, Tinyint |
[23 Jul 2020 18:56]
Jean-Marc Marchand
[24 Jul 2020 6:03]
MySQL Verification Team
Hello Jean-Marc Marchand, Thank you for the report and feedback. regards, Umesh
[10 Aug 2020 9:25]
Alexander Soklakov
Hi, Which server version do you use? There was a significant change in MySQL 8.0.19 under WL#13127, "Deprecate integer display width and ZEROFILL option". We had to follow in c/J with Bug#97413. The fact is that starting from MySQL 8.0.19 only TINYINT(1) (no ZEROFILL, no UNSIGNED) can be treated as Boolean, other variants are not supplied with display width. We could add the server version check to c/J in order TINYINT(1) UNSIGNED could work with previous server versions but I think it would be better to follow the server changes and rework your DB structure to avoid possible problems with future migration.
[9 Sep 2020 10:01]
Alexander Soklakov
Bug#100722 is marked as a duplicate of this one.
[10 Oct 2020 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".
[29 Jun 2021 8:55]
Alexander Soklakov
Posted by developer: Closing as not a bug. Please reopen the report in case you still need some kind of c/J backward compatibility in TINYINT(1) UNSIGNED vs Boolean handling.