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

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

            Transition Time In Source Status Execution Times
            Alexander Barkov made transition -
            Open In Progress
            25m 41s 1
            Alexander Barkov made transition -
            In Progress In Review
            2h 55m 1
            Alexey Botchkov made transition -
            In Review Stalled
            3d 5h 36m 1
            Alexander Barkov made transition -
            Stalled In Progress
            23h 1
            Alexander Barkov made transition -
            In Progress Closed
            36s 1

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.