[MDEV-12426] Add Field::type_handler() Created: 2017-04-02 Updated: 2017-05-17 Resolved: 2017-04-25 |
|
| 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 | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Under terms of this task we'll add a new method into the class Field, for symmetry with the class Item:
We'll also change methods Field::type(), Field::real_type(), Field::cmp_type(), Field::result_type() to be non-virtual, they will use the corresponding type_handler() methods as follows:
We'll also move the virtual method Field::cast_to_int_type_handler() from Field to Type_handler. We won't change or move Field::binlog_type() for now. It will be done in a separate task. |
| Comments |
| Comment by Vicențiu Ciorbaru [ 2017-04-24 ] |
|
Ok to push once comments are addressed. |
| Comment by Alexander Barkov [ 2017-04-25 ] |
|
Pushed to bb-10.2-ext |