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
db2403cd
Commit
db2403cd
authored
Apr 11, 2014
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addendum #1 to the fix for bug #18359924
Removed unused variable. Fixed long (>80 lines)
parent
29694eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
sql/field.cc
sql/field.cc
+0
-1
sql/sql_string.cc
sql/sql_string.cc
+11
-5
No files found.
sql/field.cc
View file @
db2403cd
...
@@ -7974,7 +7974,6 @@ int Field_enum::store(const char *from,uint length,CHARSET_INFO *cs)
...
@@ -7974,7 +7974,6 @@ int Field_enum::store(const char *from,uint length,CHARSET_INFO *cs)
{
{
ASSERT_COLUMN_MARKED_FOR_WRITE
;
ASSERT_COLUMN_MARKED_FOR_WRITE
;
int
err
=
0
;
int
err
=
0
;
uint32
not_used
;
char
buff
[
STRING_BUFFER_USUAL_SIZE
];
char
buff
[
STRING_BUFFER_USUAL_SIZE
];
String
tmpstr
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
String
tmpstr
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
...
...
sql/sql_string.cc
View file @
db2403cd
...
@@ -241,11 +241,17 @@ bool String::needs_conversion_on_storage(uint32 arg_length,
...
@@ -241,11 +241,17 @@ bool String::needs_conversion_on_storage(uint32 arg_length,
{
{
uint32
offset
;
uint32
offset
;
return
(
needs_conversion
(
arg_length
,
cs_from
,
cs_to
,
&
offset
)
||
return
(
needs_conversion
(
arg_length
,
cs_from
,
cs_to
,
&
offset
)
||
(
cs_from
==
&
my_charset_bin
&&
/* force conversion when storing a binary string */
/* force conversion when storing a binary string */
cs_to
!=
&
my_charset_bin
&&
/* into a non-binary destination */
(
cs_from
==
&
my_charset_bin
&&
(
/* and any of the following is true :*/
/* into a non-binary destination */
cs_to
->
mbminlen
!=
cs_to
->
mbmaxlen
||
/* it's a variable length encoding */
cs_to
!=
&
my_charset_bin
&&
cs_to
->
mbminlen
>
2
||
/* longer than 2 bytes : neither 1 byte nor ucs2 */
/* and any of the following is true :*/
(
/* it's a variable length encoding */
cs_to
->
mbminlen
!=
cs_to
->
mbmaxlen
||
/* longer than 2 bytes : neither 1 byte nor ucs2 */
cs_to
->
mbminlen
>
2
||
/* and is not a multiple of the char byte size */
0
!=
(
arg_length
%
cs_to
->
mbmaxlen
)
0
!=
(
arg_length
%
cs_to
->
mbmaxlen
)
)
)
)
)
...
...
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