Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0d9864b8
Commit
0d9864b8
authored
Aug 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
6e72e351
ef119c13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/grant.result
mysql-test/r/grant.result
+3
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+6
-0
sql/sql_acl.cc
sql/sql_acl.cc
+10
-1
No files found.
mysql-test/r/grant.result
View file @
0d9864b8
...
@@ -867,3 +867,6 @@ insert into mysql.user select * from t2;
...
@@ -867,3 +867,6 @@ insert into mysql.user select * from t2;
flush privileges;
flush privileges;
drop table t2;
drop table t2;
drop table t1;
drop table t1;
create user mysqltest1_thisisreallytoolong;
ERROR HY000: Operation CREATE USER failed for 'mysqltest1_thisisreallytoolong'@'%'
End of 5.0 tests
mysql-test/t/grant.test
View file @
0d9864b8
...
@@ -680,4 +680,10 @@ drop table t2;
...
@@ -680,4 +680,10 @@ drop table t2;
drop
table
t1
;
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
sql/sql_acl.cc
View file @
0d9864b8
...
@@ -5220,7 +5220,16 @@ bool mysql_create_user(THD *thd, List <LEX_USER> &list)
...
@@ -5220,7 +5220,16 @@ bool mysql_create_user(THD *thd, List <LEX_USER> &list)
{
{
result
=
TRUE
;
result
=
TRUE
;
continue
;
continue
;
}
}
if
(
user_name
->
host
.
length
>
HOSTNAME_LENGTH
||
user_name
->
user
.
length
>
USERNAME_LENGTH
)
{
append_user
(
&
wrong_users
,
user_name
);
result
=
TRUE
;
continue
;
}
/*
/*
Search all in-memory structures and grant tables
Search all in-memory structures and grant tables
for a mention of the new user name.
for a mention of the new user name.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment