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
de434ff8
Commit
de434ff8
authored
Oct 10, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use sort_order directly
parent
69dc5ef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
22 deletions
+3
-22
myisam/ft_static.c
myisam/ft_static.c
+1
-1
mysys/my_handler.c
mysys/my_handler.c
+2
-21
No files found.
myisam/ft_static.c
View file @
de434ff8
...
...
@@ -36,7 +36,7 @@ const HA_KEYSEG ft_keysegs[FT_SEGS]={
HA_FT_WLEN
,
/* start */
#endif
/* EVAL_RUN */
0
,
/* null_pos */
NULL
/*
sort_order
*/
NULL
/*
charset
*/
},
#ifdef EVAL_RUN
{
...
...
mysys/my_handler.c
View file @
de434ff8
...
...
@@ -20,28 +20,9 @@
int
mi_compare_text
(
CHARSET_INFO
*
charset_info
,
uchar
*
a
,
uint
a_length
,
uchar
*
b
,
uint
b_length
,
my_bool
part_key
)
{
int
flag
;
#ifdef USE_STRCOLL
if
(
use_strnxfrm
(
charset_info
))
{
if
(
part_key
&&
b_length
<
a_length
)
a_length
=
b_length
;
return
my_strnncoll
(
charset_info
,
a
,
a_length
,
b
,
b_length
);
}
else
#endif
{
uint
length
=
min
(
a_length
,
b_length
);
uchar
*
end
=
a
+
length
;
uchar
*
sort_order
=
charset_info
->
sort_order
;
while
(
a
<
end
)
if
((
flag
=
(
int
)
sort_order
[
*
a
++
]
-
(
int
)
sort_order
[
*
b
++
]))
return
flag
;
}
if
(
part_key
&&
b_length
<
a_length
)
return
0
;
return
(
int
)
(
a_length
-
b_length
);
a_length
=
b_length
;
return
my_strnncoll
(
charset_info
,
a
,
a_length
,
b
,
b_length
);
}
static
int
compare_bin
(
uchar
*
a
,
uint
a_length
,
uchar
*
b
,
uint
b_length
,
...
...
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