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
f860f4d3
Commit
f860f4d3
authored
Sep 16, 2003
by
kostja@oak.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor authentification optimisation
parent
07a9b89f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sql/sql_parse.cc
sql/sql_parse.cc
+9
-9
No files found.
sql/sql_parse.cc
View file @
f860f4d3
...
...
@@ -800,11 +800,10 @@ check_connection(THD *thd)
/* Since 4.1 all database names are stored in utf8 */
if
(
db
)
{
uint32
length
=
copy_and_convert
(
db_buff
,
sizeof
(
db_buff
)
-
1
,
db_buff
[
copy_and_convert
(
db_buff
,
sizeof
(
db_buff
)
-
1
,
system_charset_info
,
db
,
strlen
(
db
),
thd
->
charset
());
db_buff
[
length
]
=
0
;
thd
->
charset
())]
=
0
;
db
=
db_buff
;
}
...
...
@@ -1191,6 +1190,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
password. New clients send the size (1 byte) + string (not null
terminated, so also '\0' for empty string).
*/
char
db_buff
[
NAME_LEN
+
1
];
// buffer to store db in utf8
char
*
db
=
passwd
;
uint
passwd_len
=
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
?
*
passwd
++
:
strlen
(
passwd
);
...
...
@@ -1203,10 +1203,10 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
}
/* Convert database name to utf8 */
String
convdb
;
convdb
.
copy
(
db
,
strlen
(
db
),
thd
->
variables
.
character_set_client
,
system_charset_info
)
;
db
=
convdb
.
c_ptr
()
;
db_buff
[
copy_and_convert
(
db_buff
,
sizeof
(
db_buff
)
-
1
,
system_charset_info
,
db
,
strlen
(
db
)
,
thd
->
charset
())]
=
0
;
db
=
db_buff
;
/* Save user and privileges */
uint
save_master_access
=
thd
->
master_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