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

Split field.cc:calc_pack_length() into virtual methods in Type_handler

    XMLWordPrintable

Details

    Description

      The relevant piece of the code in the original type handler patch:

      @@ -9565,6 +9670,9 @@ enum_field_types get_blob_type_from_leng
       
       uint32 calc_pack_length(enum_field_types type,uint32 length)
       {
      +  if (const Type_handler *handler= Type_handlers.handler(type))
      +    return handler->calc_pack_length(length);
      +
         switch (type) {
         case MYSQL_TYPE_VAR_STRING:
         case MYSQL_TYPE_STRING:
       

      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.