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

Refactoring: Change sp_type_def_composite2::m_def from Spvar_definition* to Spvar_definition

    XMLWordPrintable

Details

    Description

      Let's do the following change:

       class sp_type_def_composite2 : public sp_type_def
       {
      -  Spvar_definition *m_def[2];
      +  Spvar_definition m_def[2];
      

      There's no a point to allocate Spvar_definition for m_def separately. They can reside inside sp_type_def_composite2 itself.

      This will reduce the amount of pointers and will make the existing and the future code simpler.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Alexander Barkov Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.