Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
Future new data types might want the function ROUND:
- to do something different than INT,DECIMAL,DOUBLE rounding
- or even return an error (if this operation is not applicable)
We'll split the following switch in Item_func_round::fix_length_and_dec
switch (args[0]->result_type()) |
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.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
- relates to
-
MDEV-12000 ROUND(expr,const_expr_returning_NULL) creates DOUBLE(0,0)
- Closed