Bug #94235 | MySQL Connector 8 uses depreciated 'COM_FIELD_LIST’ | ||
---|---|---|---|
Submitted: | 7 Feb 2019 9:50 | Modified: | 17 Nov 2021 17:31 |
Reporter: | Ross Beer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S5 (Performance) |
Version: | 8 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[7 Feb 2019 9:50]
Ross Beer
[13 Mar 2019 0:24]
MySQL Verification Team
Thank you for the bug report. https://dev.mysql.com/worklog/task/?id=8754
[10 Mar 2021 10:18]
Bogdan Degtyariov
Posted by developer: The C API documentation is suggesting using SHOW COLUMNS instead of mysql_list_fields(): https://dev.mysql.com/doc/c-api/8.0/en/mysql-list-fields.html NOTE: SHOW COLUMNS statement is not a fully functional replacement for mysql_list_fields() because it is not returning some data such as maximum octet length. For this reason the fix should get column metadata from Information_Schema.
[15 Sep 2021 8:39]
Bogdan Degtyariov
Posted by developer: The COM_FIELD_LIST was only used by SQLColumns() function when it worked without using Information_Schema. With this patch SQLColumns() will use Information_Schema implementation by default. COM_FIELD_LIST implementation is used when NO_I_S option is set.
[17 Nov 2021 17:31]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Connector/ODBC 8.0.28 release, and here's the proposed changelog entry from the documentation team: SQLColumns() now uses INFORMATION_SCHEMA instead of the deprecated COM_FIELD_LIST by default. COM_FIELD_LIST is only used when NO_I_S is set by Connector/ODBC (which disables INFORMATION_SCHEMA usage). Thank you for the bug report.