diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2022-10-06 19:09:44 +0200 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2022-10-07 14:41:03 +0200 |
| commit | 3fe55fa8be9bdfbaefc69e0cd7dea12833fe9cbb (patch) | |
| tree | ee021c1486e3c91d2e442e1d84d9e9106428128b /mysql-test/main/grant3.test | |
| parent | 1d35ec1ae1d1ea27d4b352f54fe5a3e720851e83 (diff) | |
| download | mariadb-git-3fe55fa8be9bdfbaefc69e0cd7dea12833fe9cbb.tar.gz | |
CREATE ... VALUES ... didn't require INSERT privilege
Diffstat (limited to 'mysql-test/main/grant3.test')
| -rw-r--r-- | mysql-test/main/grant3.test | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/mysql-test/main/grant3.test b/mysql-test/main/grant3.test index 27f565916f7..67c185bcccd 100644 --- a/mysql-test/main/grant3.test +++ b/mysql-test/main/grant3.test @@ -207,7 +207,25 @@ DROP USER 'user2'@'%'; DROP DATABASE temp; set global sql_mode=default; ---echo End of 5.0 tests +--echo # +--echo # End of 5.0 tests +--echo # + +create database db1; +create user foo@localhost; +grant create on db1.* to foo@localhost; +connect foo,localhost,foo; +create temporary table t as values (1),(2),(3); +use db1; +--error ER_TABLEACCESS_DENIED_ERROR +create table t1 as select * from test.t; +--error ER_TABLEACCESS_DENIED_ERROR +create table t1 as values (1),(2),(3); +create table t1 (a int); +disconnect foo; +connection default; +drop user foo@localhost; +drop database db1; # Wait till we reached the initial number of concurrent sessions --source include/wait_until_count_sessions.inc |
