Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
3143ac78
Commit
3143ac78
authored
21 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
fixed after-merge bug in CHANG_USER command
sql/sql_parse.cc: fixed after-merge bug in CHANGE_USER command
parent
48e6347a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
sql/sql_parse.cc
sql/sql_parse.cc
+6
-8
No files found.
sql/sql_parse.cc
View file @
3143ac78
...
...
@@ -1192,14 +1192,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
uint
passwd_len
=
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
?
*
passwd
++
:
strlen
(
passwd
);
db
+=
passwd_len
+
1
;
/* Convert database name to utf8 */
String
convdb
;
convdb
.
copy
(
db
,
strlen
(
db
),
thd
->
variables
.
character_set_client
,
system_charset_info
);
db
=
convdb
.
c_ptr
();
/* Small check for incomming packet */
if
((
uint
)
((
uchar
*
)
db
-
net
->
read_pos
)
>
packet_length
)
{
...
...
@@ -1207,6 +1199,12 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break
;
}
/* Convert database name to utf8 */
String
convdb
;
convdb
.
copy
(
db
,
strlen
(
db
),
thd
->
variables
.
character_set_client
,
system_charset_info
);
db
=
convdb
.
c_ptr
();
/* Save user and privileges */
uint
save_master_access
=
thd
->
master_access
;
uint
save_db_access
=
thd
->
db_access
;
...
...
This diff is collapsed.
Click to expand it.
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