summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-08-12 14:49:16 +0500
committerram@gw.mysql.r18.ru <>2004-08-12 14:49:16 +0500
commit955e869d7cdb71e536017e5f70101dd975f06ba3 (patch)
tree58b09d29ed3df9e27afa095c1ec8964eb869f7e5 /mysql-test/r
parent798952dcf241d21cad7f2fc746159152be310bff (diff)
downloadmariadb-git-955e869d7cdb71e536017e5f70101dd975f06ba3.tar.gz
A test case (bug #4898: User privileges depending on ORDER BY Settings of table db)
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/grant.result18
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result
index 1a968fa4f2f..c76b6ee46d5 100644
--- a/mysql-test/r/grant.result
+++ b/mysql-test/r/grant.result
@@ -131,3 +131,21 @@ Wrong usage of DB GRANT and GLOBAL PRIVILEGES
select 1;
1
1
+insert into mysql.user (host, user) values ('localhost', 'test11');
+insert into mysql.db (host, db, user, select_priv) values
+('localhost', 'a%', 'test11', 'Y'), ('localhost', 'ab%', 'test11', 'Y');
+flush privileges;
+show grants for test11@localhost;
+Grants for test11@localhost
+GRANT USAGE ON *.* TO 'test11'@'localhost'
+GRANT SELECT ON `ab%`.* TO 'test11'@'localhost'
+GRANT SELECT ON `a%`.* TO 'test11'@'localhost'
+alter table mysql.db order by db desc;
+flush privileges;
+show grants for test11@localhost;
+Grants for test11@localhost
+GRANT USAGE ON *.* TO 'test11'@'localhost'
+GRANT SELECT ON `ab%`.* TO 'test11'@'localhost'
+GRANT SELECT ON `a%`.* TO 'test11'@'localhost'
+delete from mysql.user where user='test11';
+delete from mysql.db where user='test11';