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
daf0bba2
Commit
daf0bba2
authored
Jan 21, 2004
by
bar@bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_string.cc:
Rewrote to comply the coding style
parent
03d00c7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
sql/sql_string.cc
sql/sql_string.cc
+5
-10
No files found.
sql/sql_string.cc
View file @
daf0bba2
...
@@ -240,17 +240,12 @@ bool String::needs_conversion(const char *str, uint32 arg_length,
...
@@ -240,17 +240,12 @@ bool String::needs_conversion(const char *str, uint32 arg_length,
CHARSET_INFO
*
from_cs
,
CHARSET_INFO
*
from_cs
,
CHARSET_INFO
*
to_cs
)
CHARSET_INFO
*
to_cs
)
{
{
if
(
to_cs
==
&
my_charset_bin
)
if
((
to_cs
==
&
my_charset_bin
)
||
(
to_cs
==
from_cs
)
||
my_charset_same
(
from_cs
,
to_cs
)
||
((
from_cs
==
&
my_charset_bin
)
&&
(
!
(
arg_length
%
to_cs
->
mbminlen
))))
return
FALSE
;
return
FALSE
;
if
(
to_cs
==
from_cs
)
return
FALSE
;
if
(
my_charset_same
(
from_cs
,
to_cs
))
return
FALSE
;
if
((
from_cs
==
&
my_charset_bin
))
{
if
(
!
(
arg_length
%
to_cs
->
mbminlen
))
return
FALSE
;
}
return
TRUE
;
return
TRUE
;
}
}
...
...
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