Bug #69042 | MEDIUMINT precision/type incorrect in INFORMATION_SCHEMA.COLUMNS | ||
---|---|---|---|
Submitted: | 23 Apr 2013 16:31 | Modified: | 24 Apr 2013 5:17 |
Reporter: | Filipe Silva | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.1.68, 5.5.31, 5.6.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | INFORMATION_SCHEMA.COLUMNS, mediumint |
[23 Apr 2013 16:31]
Filipe Silva
[24 Apr 2013 5:17]
MySQL Verification Team
Hello Filipe, Thank you for the report. Verified as described. Thanks, Umesh
[13 Jul 2017 18:49]
Jim Patterson
My code is comparing a MySQL-reported schema against a reference schema without length, so the code has to apply a default length for the reference schema to compare properly. I have added an exception for signed MEDIUMINT to be either 8 or 9, in case this issue is fixed in the future. Testing with a temporary table to determine the default integer lengths would mitigate the issue, too.