summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorunknown <jimw@rama.(none)>2006-07-24 16:45:26 -0700
committerunknown <jimw@rama.(none)>2006-07-24 16:45:26 -0700
commit14fef80d98d14ea923701262b81954d88a9b13b1 (patch)
treed24e85a81ecddbc8e760854b7e45effc8f4c3385 /mysql-test/t/grant.test
parentdc50ce997083b4f3d3e4ab237c6a1f5e11cfd90f (diff)
downloadmariadb-git-14fef80d98d14ea923701262b81954d88a9b13b1.tar.gz
Bug #10668: CREATE USER does not enforce username length limit
This appears to have just been an oversight -- CREATE USER was not enforcing the existing username limitations. mysql-test/r/grant.result: Add new results mysql-test/t/grant.test: Add new regression test sql/sql_acl.cc: Enforce the user and host name limits in mysql_create_user().
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r--mysql-test/t/grant.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test
index a9d52f559ca..d025709cc21 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -680,4 +680,10 @@ drop table t2;
drop table t1;
+#
+# Bug #10668: CREATE USER does not enforce username length limit
+#
+--error ER_CANNOT_USER
+create user mysqltest1_thisisreallytoolong;
+--echo End of 5.0 tests