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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
22815476
Commit
22815476
authored
Feb 19, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Applying Sinisa's Patch "Fixing the error messages returned on
GRANT commands"
parent
35391c73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+6
-2
No files found.
sql/share/english/errmsg.txt
View file @
22815476
...
...
@@ -134,7 +134,7 @@
"Host '%-.64s' is not allowed to connect to this MySQL server",
"You are using MySQL as an anonymous users and anonymous users are not allowed to change passwords",
"You must have privileges to update tables in the mysql database to be able to change passwords for others",
"
Can't find any matching row in the user table
",
"
Password string is of inadequate length
",
"Rows matched: %ld Changed: %ld Warnings: %ld",
"Can't create a new thread (errno %d). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug",
"Column count doesn't match value count at row %ld",
...
...
sql/sql_acl.cc
View file @
22815476
...
...
@@ -1203,7 +1203,8 @@ static bool update_user_table(THD *thd, const char *host, const char *user,
(
byte
*
)
table
->
field
[
0
]
->
ptr
,
0
,
HA_READ_KEY_EXACT
))
{
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
/* purecov: deadcode */
my_printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
user
,
host
);
DBUG_RETURN
(
1
);
/* purecov: deadcode */
}
store_record
(
table
,
1
);
...
...
@@ -1445,7 +1446,8 @@ static int replace_db_table(TABLE *table, const char *db,
// is there such a user in user table in memory ????
if
(
!
initialized
||
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
{
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
my_printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
DBUG_RETURN
(
-
1
);
}
...
...
@@ -1888,6 +1890,8 @@ static int replace_table_table(THD *thd, GRANT_TABLE *grant_table,
if
(
!
find_acl_user
(
combo
.
host
.
str
,
combo
.
user
.
str
))
{
my_error
(
ER_PASSWORD_NO_MATCH
,
MYF
(
0
));
/* purecov: deadcode */
my_printf_error
(
ER_NONEXISTING_GRANT
,
ER
(
ER_NONEXISTING_GRANT
),
MYF
(
0
),
combo
.
user
.
str
,
combo
.
host
.
str
);
DBUG_RETURN
(
-
1
);
/* purecov: deadcode */
}
...
...
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