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

Remove Item_func_xxx::decimal_precision() for case and abbreviations

    Details

      Description

      decimal_precision() implementations for the classes implementing CASE and CASE-alike functions became redundant after implementing MDEV-12770. The derived implementation from Item should perfectly do the job (by going through Type_handler_xxx::type_handler().

      We'll remove decimal_precision() from the following classes:

      Item_func_ifnull
      Item_func_case_abbreviation2
      Item_func_if
      Item_func_nvl2
      Item_func_nullif
      Item_func_case
      

      This will reduce the amount of duplicate code.

        Attachments

          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: