[MDEV-9234] Add Type_handler::union_element_finalize() Created: 2015-12-03 Updated: 2021-07-28 Resolved: 2019-04-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Fix Version/s: | 10.4.5 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | refactoring | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
There is a code in sql_union.cc which checks that an Item is OK as a UNION field.
Currently, this code has only one purpose: In case of character string data types it makes sure that the aggregated data type has a non-conflicting collation, to disallow this:
All other built-in data types have no additional requirements on the aggregated data type. This code should go into a new virtual method in Type_handler. |