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
bd711d4f
Commit
bd711d4f
authored
Jul 21, 2021
by
Hollow Man
Committed by
Vicențiu Ciorbaru
Jul 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fixes in item_strfunc.cc
parent
751ebe44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sql/item_strfunc.cc
sql/item_strfunc.cc
+7
-7
No files found.
sql/item_strfunc.cc
View file @
bd711d4f
...
...
@@ -479,7 +479,7 @@ String *Item_func_from_base64::val_str(String *str)
const
char
*
histogram_types
[]
=
{
"SINGLE_PREC_HB"
,
"DOUBLE_PREC_HB"
,
0
};
static
TYPELIB
h
ystorg
am_types_typelib
=
static
TYPELIB
h
istogr
am_types_typelib
=
{
array_elements
(
histogram_types
),
"histogram_types"
,
histogram_types
,
NULL
};
...
...
@@ -495,7 +495,7 @@ String *Item_func_decode_histogram::val_str(String *str)
tmp
.
length
(
0
);
if
(
!
(
res
=
args
[
0
]
->
val_str
(
&
tmp
))
||
(
type
=
find_type
(
res
->
c_ptr_safe
(),
&
h
ystorg
am_types_typelib
,
MYF
(
0
)))
<=
0
)
&
h
istogr
am_types_typelib
,
MYF
(
0
)))
<=
0
)
{
null_value
=
1
;
return
0
;
...
...
@@ -580,7 +580,7 @@ bool Item_func_concat::realloc_result(String *str, uint length) const
as str was initially set by args[0]->val_str(str).
So multiplication by 2 can overflow, if args[0] for some reasons
did not limit the result to max_alloced_packet. But it's not harmful,
"str" will be realloced exactly to "length" bytes in case of overflow.
"str" will be realloc
at
ed exactly to "length" bytes in case of overflow.
*/
uint
new_length
=
MY_MAX
(
str
->
alloced_length
()
*
2
,
length
);
return
str
->
realloc
(
new_length
);
...
...
@@ -1456,7 +1456,7 @@ String *Item_func_insert::val_str(String *str)
length
=
res
->
length
();
/*
There is one exception not handled (intentionaly) by the character set
There is one exception not handled (intentional
l
y) by the character set
aggregation code. If one string is strong side and is binary, and
another one is weak side and is a multi-byte character string,
then we need to operate on the second string in terms on bytes when
...
...
@@ -3204,7 +3204,7 @@ String *Item_func_rpad::val_str(String *str)
if
((
ulonglong
)
count
>
INT_MAX32
)
count
=
INT_MAX32
;
/*
There is one exception not handled (intentionaly) by the character set
There is one exception not handled (intentional
l
y) by the character set
aggregation code. If one string is strong side and is binary, and
another one is weak side and is a multi-byte character string,
then we need to operate on the second string in terms on bytes when
...
...
@@ -3286,7 +3286,7 @@ String *Item_func_lpad::val_str(String *str)
count
=
INT_MAX32
;
/*
There is one exception not handled (intentionaly) by the character set
There is one exception not handled (intentional
l
y) by the character set
aggregation code. If one string is strong side and is binary, and
another one is weak side and is a multi-byte character string,
then we need to operate on the second string in terms on bytes when
...
...
@@ -4131,7 +4131,7 @@ longlong Item_func_uncompressed_length::val_int()
5 bytes long.
res->c_ptr() is not used because:
- we do not need \0 terminated string to get first 4 bytes
- c_ptr() tests simbol after string end (uninitiali
o
zed memory) which
- c_ptr() tests simbol after string end (uninitialized memory) which
confuse valgrind
*/
return
uint4korr
(
res
->
ptr
())
&
0x3FFFFFFF
;
...
...
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