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

ALTER TABLE ... CONVERT ... PARTITION doesn't encode partition names

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      --source include/have_partition.inc
      create table t1 (a int) partition by list (a) (
        partition p0 values in (5),
        partition `foo-bar` values in (7)
      );
      insert t1 values (5),(7);
      alter table t1 convert partition `foo-bar` to table t2;
      alter table t1 convert table t2 to partition `foo-bar` values in (7);
      select * from t1;
      drop table t1;
      

      Reported by Ben Bidner (Automattic.com Security Team).

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0d
                0d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h

                Git Integration

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