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

Replace Virtual_column_info::field_type to Type_handler

    XMLWordPrintable

Details

    Description

      Column_definition::check(THD *thd) has the following code:

         if (vcol_info)
         {
           DBUG_ASSERT(vcol_info->expr);
           vcol_info->set_field_type(real_field_type())
      

      To be pluggable data type friendly, we'll need to remove all calls for Column_definition::real_field_type() eventually.
      To get rid of this entry, let's do the following:

      • Remove the member Virtual_column_info::field_type
      • Derive Virtual_column_info from Type_handler_hybrid_field_type
      • Remove methods set_field_type() and get_real_type() and use Type_handler_hybrid_field_type::set_handler() and Type_handler_hybrid_field_type::typ_handler() instead.

      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.