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
2abe0d6e
Commit
2abe0d6e
authored
Oct 20, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 52019
parents
3b15deb1
441e3b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqltest.cc
client/mysqltest.cc
+4
-4
No files found.
client/mysqltest.cc
View file @
2abe0d6e
...
...
@@ -5779,7 +5779,7 @@ int read_line(char *buf, int size)
/* Could be a multibyte character */
/* This code is based on the code in "sql_load.cc" */
#ifdef USE_MB
int
charlen
=
my_mbcharlen
(
charset_info
,
c
);
int
charlen
=
my_mbcharlen
(
charset_info
,
(
unsigned
char
)
c
);
/* We give up if multibyte character is started but not */
/* completed before we pass buf_end */
if
((
charlen
>
1
)
&&
(
p
+
charlen
)
<=
buf_end
)
...
...
@@ -5791,16 +5791,16 @@ int read_line(char *buf, int size)
for
(
i
=
1
;
i
<
charlen
;
i
++
)
{
c
=
my_getc
(
cur_file
->
file
);
if
(
feof
(
cur_file
->
file
))
goto
found_eof
;
c
=
my_getc
(
cur_file
->
file
);
*
p
++
=
c
;
}
if
(
!
my_ismbchar
(
charset_info
,
mb_start
,
p
))
{
/* It was not a multiline char, push back the characters */
/* We leave first 'c', i.e. pretend it was a normal char */
while
(
p
>
mb_start
)
while
(
p
-
1
>
mb_start
)
my_ungetc
(
*--
p
);
}
}
...
...
@@ -9864,6 +9864,7 @@ void free_pointer_array(POINTER_ARRAY *pa)
void
replace_dynstr_append_mem
(
DYNAMIC_STRING
*
ds
,
const
char
*
val
,
int
len
)
{
char
lower
[
512
];
#ifdef __WIN__
fix_win_paths
(
val
,
len
);
#endif
...
...
@@ -9871,7 +9872,6 @@ void replace_dynstr_append_mem(DYNAMIC_STRING *ds,
if
(
display_result_lower
)
{
/* Convert to lower case, and do this first */
char
lower
[
512
];
char
*
c
=
lower
;
for
(
const
char
*
v
=
val
;
*
v
;
v
++
)
*
c
++=
my_tolower
(
charset_info
,
*
v
);
...
...
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