summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-07-22 22:00:51 +0200
committerunknown <serg@serg.mylan>2003-07-22 22:00:51 +0200
commitb413e5c420c3cdb32b519f67aaacf7ad1126d71e (patch)
tree4a9f976912b1c0f0407c09b08857800dc756dc8f /mysql-test/r
parent491cdf396fe45d1246e5ab664e0d4192244f89fd (diff)
downloadmariadb-git-b413e5c420c3cdb32b519f67aaacf7ad1126d71e.tar.gz
wild_compare fun: bug in GRANT db_pattern.* ...
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/grant2.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/grant2.result b/mysql-test/r/grant2.result
new file mode 100644
index 00000000000..1586375c7d8
--- /dev/null
+++ b/mysql-test/r/grant2.result
@@ -0,0 +1,24 @@
+delete from mysql.user where user like 'mysqltest\_%';
+delete from mysql.db where user like 'mysqltest\_%';
+flush privileges;
+grant all privileges on `my\_%`.* to mysqltest_1@localhost with grant option;
+select current_user();
+current_user()
+mysqltest_1@localhost
+grant all privileges on `my\_1`.* to mysqltest_9@localhost with grant option;
+ERROR 42000: Access denied for user: 'mysqltest_1@localhost' to database 'my\_1'
+grant all privileges on `my_%`.* to mysqltest_2@localhost with grant option;
+select current_user();
+current_user()
+mysqltest_2@localhost
+grant all privileges on `mysql`.* to mysqltest_3@localhost with grant option;
+select current_user();
+current_user()
+mysqltest_3@localhost
+show grants for mysqltest_3@localhost;
+Grants for mysqltest_3@localhost
+GRANT USAGE ON *.* TO 'mysqltest_3'@'localhost'
+GRANT ALL PRIVILEGES ON `mysql`.* TO 'mysqltest_3'@'localhost' WITH GRANT OPTION
+delete from mysql.user where user like 'mysqltest\_%';
+delete from mysql.db where user like 'mysqltest\_%';
+flush privileges;