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

Split Item_func_{abs|neg|int_val}::fix_length_and_dec() into methods in Type_handler

    Details

    • Sprint:
      10.2.5-1

      Description

      The following methods:

      Item_func_neg::fix_length_and_dec()
      Item_func_abs::fix_length_and_dec()
      Item_func_int_val::fix_length_and_dec()
      

      have switches on arg[0]->cast_to_int_type().
      This is not friendly to pluggable data types.

      Under term of this task we'll split implementations of these methods into new methods in Type_handler:

      virtual bool Item_func_abs_fix_length_and_dec(Item_func_abs *) const;
      virtual bool Item_func_int_val_fix_length_and_dec(Item_func_int_val *) const;
      virtual bool Item_func_neg_fix_length_and_dec(Item_func_neg *) const;
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: