Bug #98620 | Using DatabaseMetaData.getColumns() gives collation mix error | ||
---|---|---|---|
Submitted: | 16 Feb 2020 11:54 | Modified: | 17 Jun 2020 11:47 |
Reporter: | Claude Brisson | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 8.0.19, 8.0.20 | OS: | Ubuntu (19.10) |
Assigned to: | CPU Architecture: | x86 |
[16 Feb 2020 11:54]
Claude Brisson
[17 Jun 2020 11:47]
MySQL Verification Team
Hello Claude Brisson, Thank you for the report and feedback. regards, Umesh
[29 Oct 2021 5:36]
Ida Infront
I have run into the same problem and did some digging. Looks like the problem is not related to the conditions on table_schema or table_name that is in the where-clause. Rather the problem seems to be with a few IF's that are selected, these: IF(IS_NULLABLE = 'yes',1,0) NULLABLE, IF(EXTRA = 'auto_increment','YES','NO') IS_AUTOINCREMENT, IF(EXTRA in ('VIRTUAL', 'PERSISTENT', 'VIRTUAL GENERATED', 'STORED GENERATED') ,'YES','NO') IS_GENERATEDCOLUMN I guess this is somehow related with INFORMATION_SCHEMA.COLUMNS being a view instead of a table? Since the same thing worked in earlier versions of mysql.
[17 Nov 2022 17:04]
Filipe Silva
Thank you all for the detailed information. As a temporary workaround you can set `useInformationSchema=false` in the connection string and it should now work.