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
d981ccf9
Commit
d981ccf9
authored
Aug 09, 2002
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed mi_comp_unique to use _mi_compare_text()
parent
cdd1d57e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
myisam/mi_unique.c
myisam/mi_unique.c
+5
-5
No files found.
myisam/mi_unique.c
View file @
d981ccf9
...
...
@@ -170,19 +170,19 @@ int mi_unique_comp(MI_UNIQUEDEF *def, const byte *a, const byte *b,
memcpy_fixed
((
byte
*
)
&
pos_a
,
pos_a
+
keyseg
->
bit_start
,
sizeof
(
char
*
));
memcpy_fixed
((
byte
*
)
&
pos_b
,
pos_b
+
keyseg
->
bit_start
,
sizeof
(
char
*
));
}
end
=
pos_a
+
length
;
if
(
type
==
HA_KEYTYPE_TEXT
||
type
==
HA_KEYTYPE_VARTEXT
)
{
uchar
*
sort_order
=
keyseg
->
charset
->
sort_order
;
while
(
pos_a
!=
end
)
if
(
sort_order
[
*
(
uchar
*
)
pos_a
++
]
!=
sort_order
[
*
(
uchar
*
)
pos_b
++
])
if
(
_mi_compare_text
(
keyseg
->
charset
,
(
uchar
*
)
pos_a
,
length
,
(
uchar
*
)
pos_b
,
length
,
0
))
return
1
;
}
else
{
end
=
pos_a
+
length
;
while
(
pos_a
!=
end
)
if
(
*
pos_a
++
!=
*
pos_b
++
)
return
1
;
}
}
return
0
;
}
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