[MDEV-12770] Add Type_handler::decimal_precision() Created: 2017-05-10 Updated: 2017-05-10 Resolved: 2017-05-10 |
|
| 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 |
|
The code in Item::decimal_precision():
We'll introduce a new method in Type_handler:
and split Item::decimal_precision() into implementations of the relevant Type_handler_xxx. The implementation of Item::decimal_precision() will change to:
virtual uint decimal_precision() const { return type_handler()->Item_decimal_precision(this); } {cpp} |
| Comments |
| Comment by Alexander Barkov [ 2017-05-10 ] |
|
Pushed to bb-10.2-ext |