Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12001

Split Item_func_round::fix_length_and_dec to virtual methods in Type_handler

    XMLWordPrintable

    Details

      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

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: