[MDEV-12559] Split Item::temporal_precision() into virtual methods in Type_handler Created: 2017-04-22 Updated: 2017-04-22 Resolved: 2017-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| 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 |
|
This code:
as well as some pieces of the code calling Item::temporal_precision():
are not friendly to pluggable data types, because they use field_type(). To make the code safe for new data types, we'll split this code into two methods in Type_handler:
|
| Comments |
| Comment by Alexander Barkov [ 2017-04-22 ] |
|
Pushed to bb-10.2-ext |