MySQL 8 ignoring integer lengths
问题 I have a MySQL 8.0.19 running in a Docker container and using the InnoDB engine. I have noticed that table integer field lengths are getting ignored. The issue occurs with integer datatypes regardless if running a CREATE or ALTER query CREATE TABLE `test` ( `id` int DEFAULT NULL, `text_field` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `decimal_field` decimal(6,2) DEFAULT NULL, `int_field` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; The