diff options
author | unknown <jimw@rama.(none)> | 2006-07-24 16:45:26 -0700 |
---|---|---|
committer | unknown <jimw@rama.(none)> | 2006-07-24 16:45:26 -0700 |
commit | 14fef80d98d14ea923701262b81954d88a9b13b1 (patch) | |
tree | d24e85a81ecddbc8e760854b7e45effc8f4c3385 /mysql-test/r/grant.result | |
parent | dc50ce997083b4f3d3e4ab237c6a1f5e11cfd90f (diff) | |
download | mariadb-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/r/grant.result')
-rw-r--r-- | mysql-test/r/grant.result | 3 |
1 files changed, 3 insertions, 0 deletions
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 |