From 14fef80d98d14ea923701262b81954d88a9b13b1 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 24 Jul 2006 16:45:26 -0700 Subject: 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(). --- mysql-test/r/grant.result | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mysql-test/r/grant.result') diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result index 3f3325354ee..bb69202f1df 100644 --- a/mysql-test/r/grant.result +++ b/mysql-test/r/grant.result @@ -867,3 +867,6 @@ insert into mysql.user select * from t2; flush privileges; drop table t2; drop table t1; +create user mysqltest1_thisisreallytoolong; +ERROR HY000: Operation CREATE USER failed for 'mysqltest1_thisisreallytoolong'@'%' +End of 5.0 tests -- cgit v1.2.1