[MDEV-12001] Split Item_func_round::fix_length_and_dec to virtual methods in Type_handler Created: 2017-02-06 Updated: 2017-04-07 Resolved: 2017-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.3.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | datatype | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Future new data types might want the function ROUND:
We'll split the following switch in Item_func_round::fix_length_and_dec
to virtial methods in Type_handler. Also, we'll disallow ROUND for the GEOMETRY type, as it's useless. So GEOMETRY will be an example of a type whose ROUND operation is not applicable. |