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

Database privileges are insufficient for CONVERT TABLE TO PARTITION

Details

    Description

      --source include/have_partition.inc
       
      create database db;
      create user u@localhost;
      grant all on db.* to u@localhost;
       
      --connect (con1,localhost,u,,db)
      create table t1 (a int) partition by range(a) (p1 values less than (100), p2 values less than (1000));
      alter table t1 convert partition p2 to table tp;
      alter table t1 convert table tp to partition p2 values less than (1000);
       
      # Cleanup
      --disconnect con1
      --connection default
      drop user u@localhost;
      drop database db;
      

      11.0 a79abb65

      mysqltest: At line 10: query 'alter table t1 convert table tp to partition p2 values less than (1000)' failed: ER_TABLEACCESS_DENIED_ERROR (1142): DROP, ALTER command denied to user 'u'@'localhost' for table `db`.`tp`
      

      So, convert partition to table works, but the other way round does not.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Aleksey Midenkov made transition -
            Open In Progress
            105d 1h 4m 1
            Aleksey Midenkov made transition -
            In Progress In Review
            17h 35m 1
            Oleksandr Byelkin made transition -
            In Review Stalled
            59d 23h 48m 1
            Aleksey Midenkov made transition -
            Stalled In Progress
            3d 22h 47m 1
            Aleksey Midenkov made transition -
            In Progress Closed
            14d 2h 46m 1

            People

              midenok Aleksey Midenkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.