[MDEV-12710] Fix Item_cache constructors to accept Type_handler instead of enum_field_types Created: 2017-05-06 Updated: 2017-05-06 Resolved: 2017-05-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| 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 |
|
Item_cache and its descendants have this style constructors:
Making a cache involves calls for field_type(), e.g.:
This is not friendly to pluggable data types, which will return existing type codes in field_type(). We'll change all Item_cache* constructors to accept a Type_handler pointer instead:
And replace constructor calls to:
|
| Comments |
| Comment by Alexander Barkov [ 2017-05-06 ] |
|
Pushed to bb-10.2-ext |