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

          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.