with mysql 8
go to System -> Database
All database table structures are up to date.
no problems
cc @richard67
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-16 11:24:17 |
Closed_By | ⇒ | richard67 |
Closing as having PR. If it turns out that the PR is not right, this issue can be reopened.
Confirmed. I have that, too, on my MySQL 8. The reason is that a "SHOW COLUMNS" statement, which is what is used by the schema checker, returns e.g. "int" or "int unsigned" in the "type" column, where a MySQL 5.7 shows e.g. "int(11)" or "int(10) unsigned" or "int(5)" or whatever display size was given. I.e. the display size is not included anymore in the "type" value for integers in MySQL 8.
As one can read here https://dev.mysql.com/doc/refman/8.0/en/numeric-type-attributes.html, this display size is only relevant for padding with zeros, which is deprecated anyway, as described there. It does not change anything on the value range of that particular integer field, and it does not change anything on the storage space it needs.
I have stumpled at the same issue yesterday night and have already prepared a fix.
@alikon Thanks for reproducing and creating this issue.
Will make PR later today. The PR will make the schema checker for MySQL accept both, "int" and "int unsigned" with and without display size, so it works for both MySQL 8 and previous. That will mean the schema checker will simply ignore the display size for integer columns.