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
b74332ec
Commit
b74332ec
authored
Sep 03, 2003
by
unknown
Browse files
Options
Browse Files
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
15c0fe47
Changes
1
Show 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 @
b74332ec
...
...
@@ -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
;
...
...
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