[MDEV-31014] Database privileges are insufficient for CONVERT TABLE TO PARTITION Created: 2023-04-05  Updated: 2023-12-04  Resolved: 2023-10-06

Status: Closed
Project: MariaDB Server
Component/s: Authentication and Privilege System, Partitioning
Affects Version/s: 10.7, 10.8, 10.9, 10.10, 10.11, 11.0
Fix Version/s: 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2, 11.3.1

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Aleksey Midenkov
Resolution: Fixed Votes: 0
Labels: pushing

Issue Links:
Blocks
Problem/Incident
is caused by MDEV-22165 CONVERT TABLE: move in partition from... Closed
Relates
relates to MDEV-22165 CONVERT TABLE: move in partition from... Closed
relates to MDEV-22166 CONVERT PARTITION: move out partition... Closed

 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.



 Comments   
Comment by Aleksey Midenkov [ 2023-07-20 ]

Please review bb-10.7-midenok

Comment by Oleksandr Byelkin [ 2023-09-18 ]

OK to push

Generated at Thu Feb 08 10:20:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.