summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-08-03 19:18:24 +0200
committerunknown <msvensson@neptunus.(none)>2006-08-03 19:18:24 +0200
commit0d9864b86cf5d89b07aa5fa216995fbd43682d44 (patch)
tree5b36404de72a049387e911c42cd10fbadda93b1f /mysql-test
parent6e72e3519d31085a0acd4097f8f19c802804ea5c (diff)
parentef119c130bd7dbf1979e7ff8c56cf07dde65954c (diff)
downloadmariadb-git-0d9864b86cf5d89b07aa5fa216995fbd43682d44.tar.gz
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/grant.result3
-rw-r--r--mysql-test/t/grant.test6
2 files changed, 9 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
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