summaryrefslogtreecommitdiff
path: root/mysql-test/main/grant5.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-08-03 14:44:06 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2020-08-03 14:44:06 +0200
commit57325e470615e79f674d82b2d5b09f609508fc6a (patch)
tree7a2e84a6753a5a5592f44f96194ad7a551c4669f /mysql-test/main/grant5.test
parent706a7101bfacd29f4f5728034be92240e82df583 (diff)
parentc32f71af7e4b747de223bf6b44e691941f5997cf (diff)
downloadmariadb-git-57325e470615e79f674d82b2d5b09f609508fc6a.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'mysql-test/main/grant5.test')
-rw-r--r--mysql-test/main/grant5.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/main/grant5.test b/mysql-test/main/grant5.test
index 054b16c0a6e..e133108516e 100644
--- a/mysql-test/main/grant5.test
+++ b/mysql-test/main/grant5.test
@@ -34,6 +34,27 @@ REVOKE EXECUTE ON PROCEDURE sp FROM u;
REVOKE PROCESS ON *.* FROM u;
DROP TABLE t1;
+#
+# MDEV-23010 UPDATE privilege at Database and Table level fail to update with SELECT command denied to user
+#
+create database mysqltest1;
+use mysqltest1;
+create table t1(id int);
+insert t1 values(2);
+create user u1@localhost;
+grant select on mysqltest1.t1 to u1@localhost;
+grant update on mysqltest1.* to u1@localhost;
+connect u1, localhost, u1;
+update mysqltest1.t1 set id=1 where id=2;
+connection default;
+disconnect u1;
+drop user u1@localhost;
+drop database mysqltest1;
+
+#
+# End of 10.1 tests
+#
+
--echo #
--echo # MDEV-20076: SHOW GRANTS does not quote role names properly
--echo #