v.23.10Improvement
SHOW COLUMNS Enhancements for FixedString and MySQL Type Mapping
SHOW COLUMNSnow correctly reports typeFixedStringasBLOBif settinguse_mysql_types_in_show_columnsis on. Also added two new settings,mysql_map_string_to_text_in_show_columnsandmysql_map_fixed_string_to_text_in_show_columnsto switch the output for typesStringandFixedStringasTEXTorBLOB. #55617 (Serge Klochkov).
Why it matters
This feature improves compatibility and clarity when usingSHOW COLUMNS by aligning the output types with MySQL conventions. It addresses the inconsistency in type representation, giving users the flexibility to switch String and FixedString outputs to either TEXT or BLOB, which can simplify integration with applications expecting MySQL-like type mappings.How to use it
Enable the feature by settinguse_mysql_types_in_show_columns to 1. Then optionally configure mysql_map_string_to_text_in_show_columns and mysql_map_fixed_string_to_text_in_show_columns to 1 or 0 to control whether String and FixedString types are shown as TEXT or BLOB respectively. Example:SET use_mysql_types_in_show_columns = 1;
SET mysql_map_string_to_text_in_show_columns = 1;
SET mysql_map_fixed_string_to_text_in_show_columns = 0;
SHOW COLUMNS FROM your_table;