Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
13.0
-
None
-
Not for Release Notes
Description
MTR Test case
|
MDEV-35915 CS 13.0.0 fcf14161a97ec5542a265d6f00a95264dbad4fa7 (Debug, Clang 18.1.3-11) Build 03/06/2026 |
create user u@localhost;
|
create global temporary table test.g (id int primary key, v int)
|
on commit preserve rows;
|
grant select, insert on test.g to u@localhost;
|
 |
--connect (c, localhost, u,,test)
|
show grants;
|
insert into g values (1,10);
|
--echo # Actual : UPDATE without UPDATE privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR
|
update g set v = 999 where id = 1;
|
--echo # Actual : DELETE without DELETE privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR
|
delete from g where id = 1;
|
insert into g values (2,20);
|
--echo # Actual : TRUNCATE without DROP privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR
|
truncate g;
|
--disconnect c
|
Output
create user u@localhost; |
create global temporary table test.g (id int primary key, v int) |
on commit preserve rows; |
grant select, insert on test.g to u@localhost; |
connect c, localhost, u,,test; |
show grants;
|
Grants for u@localhost |
GRANT USAGE ON *.* TO `u`@`localhost` |
GRANT SELECT, INSERT ON `test`.`g` TO `u`@`localhost` |
insert into g values (1,10); |
# Actual : UPDATE without UPDATE privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR |
update g set v = 999 where id = 1; |
# Actual : DELETE without DELETE privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR |
delete from g where id = 1; |
insert into g values (2,20); |
# Actual : TRUNCATE without DROP privilege succeeds. Expected ER_TABLEACCESS_DENIED_ERROR |
truncate g; |
disconnect c;
|
Attachments
Issue Links
- is caused by
-
MDEV-35915 Implement Global temporary tables
-
- Stalled
-