[MDEV-12568] Add Type_handler::subquery_type_allows_materialization() Created: 2017-04-23 Updated: 2017-04-24 Resolved: 2017-04-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | 10.3.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | datatype, refactoring | ||
| Issue Links: |
|
||||||||
| Description |
|
There is a code in sql/opt_subselect.cc:
It's not friendly for new data types. It uses a switch on cmp_type() and uses mysql_type_to_time_type(outer->field_type()). Under terms of this task we'll 1. Introduce two new virtual methods in Type_handler:
2. Split the above code into virtual implementations for corresponding type handlers. 3. Replace calls mysql_type_to_time_type(field_type()) to type_handler()->mysql_timestamp_type() |
| Comments |
| Comment by Alexander Barkov [ 2017-04-24 ] |
|
Pushed to bb-10.2-ext |