Bug #84456 | column names in metadata appearing as uppercase when selecting from I_S | ||
---|---|---|---|
Submitted: | 10 Jan 2017 11:49 | Modified: | 7 Mar 2019 19:06 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S3 (Non-critical) |
Version: | 8.0.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[10 Jan 2017 11:49]
Shane Bester
[15 Apr 2017 13:43]
MySQL Verification Team
https://bugs.mysql.com/bug.php?id=85947
[11 Jul 2017 11:33]
Erlend Dahl
Bug#85947 I_S column name is upper case and breaks app compatibility was marked as a duplicate
[15 Nov 2017 18:07]
Erlend Dahl
Posted by developer: [11 Sep 2017 7:33] Gopal Shankar The decision is to use the workaround as stated in 'Suggested Fix:' section in the bug report.
[7 Nov 2018 13:04]
Simon Mudd
Duplicate: https://bugs.mysql.com/bug.php?id=93102.
[7 Mar 2019 19:06]
Paul DuBois
Posted by developer: Revised https://dev.mysql.com/doc/refman/8.0/en/data-dictionary-usage-differences.html to add: Queries on INFORMATION_SCHEMA tables may return column names in a different lettercase than in earlier MySQL series. Applications should test result set column names in case-insensitive fashion. If that is not feasible, a workaround is to use column aliases in the select list that return column names in the required lettercase. For example: SELECT TABLE_SCHEMA AS table_schema, TABLE_NAME AS table_name FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'users';