summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorunknown <dlenev@mysql.com>2004-12-23 22:16:43 +0300
committerunknown <dlenev@mysql.com>2004-12-23 22:16:43 +0300
commit19ffa6a4ecdf30ca0d6071777a06b6d297a49529 (patch)
tree833ec7a7c4a9d9dce41d8f8ad1b5e7641f1eee81 /mysql-test/t/grant.test
parent05c65b91ef50641ba52706cf58918a21be258ee8 (diff)
parent4a5ca0bc638b2e09bca1fc0b9b8bee02590c6e08 (diff)
downloadmariadb-git-19ffa6a4ecdf30ca0d6071777a06b6d297a49529.tar.gz
Manual merge of changes making GRANTs, which change SSL attributes and/or
user limits to behave well on 5.0 tables, into 4.1 tree. mysql-test/r/grant.result: Auto merged mysql-test/t/grant.test: Auto merged
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r--mysql-test/t/grant.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test
index 338711b8736..ca9ca9a5f97 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -33,6 +33,23 @@ delete from mysql.user where user='mysqltest_1';
flush privileges;
#
+# Test of GRANTS specifying user limits
+#
+delete from mysql.user where user='mysqltest_1';
+flush privileges;
+grant usage on *.* to mysqltest_1@localhost with max_queries_per_hour 10;
+select * from mysql.user where user="mysqltest_1";
+show grants for mysqltest_1@localhost;
+grant usage on *.* to mysqltest_1@localhost with max_updates_per_hour 20 max_connections_per_hour 30;
+select * from mysql.user where user="mysqltest_1";
+show grants for mysqltest_1@localhost;
+# This is just to double check that one won't ignore results of selects
+flush privileges;
+show grants for mysqltest_1@localhost;
+delete from mysql.user where user='mysqltest_1';
+flush privileges;
+
+#
# Test that the new db privileges are stored/retrieved correctly
#