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

Add Type_handler::val_int_signed_typecast() and Type_handler::val_int_unsigned_typecast()

    XMLWordPrintable

Details

    Description

      The code in these methods:

      longlong Item::val_int_unsigned_typecast();
      longlong Item::val_int_signed_typecast();
      

      is not friendly to pluggable data types, as it tests for cmp_type().
      Pluggable data types may want to implement a different way for signed/unsigned conversion.

      Under terms of this task will add new methods in Type_handler:

      virtual longlong Item_val_int_signed_typecast(Item *item) const;
      virtual longlong Item_val_int_unsigned_typecast(Item *item) const;
      

      and split the mentioned code into virtual implementations for relevant Type_handler_xxx classes.

      Attachments

        Issue Links

          Activity

            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.