[MDEV-15971] Split the code for CHARACTER_OCTET_LENGTH and CHARACTER_MAXIMUM_LENGTH into methods in Field Created: 2018-04-22 Updated: 2018-04-22 Resolved: 2018-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Information Schema |
| Fix Version/s: | 10.3.7 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
The code in sql_show.cc displaying INFORMATION_SCHEMA.COLUMNS.CHARACTER_OCTET_LENGTH and INFORMATION_SCHEMA.COLUMNS.CHARACTER_MAXIMUM_LENGTH:
This is non friendly to pluggable data types. Also, this makes it hard to fix bugs in max_display_length(). Under terms of this task we'll move the code in sql_show.cc into a new virtual method in Field:
where Information_schema_character_attributes is a new class with approximately this structure:
|