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
d5880298
Commit
d5880298
authored
Jun 11, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix
myisam/mi_unique.c: warning removed
parent
e9242d68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
myisam/mi_unique.c
myisam/mi_unique.c
+3
-3
sql/field.cc
sql/field.cc
+2
-3
No files found.
myisam/mi_unique.c
View file @
d5880298
...
...
@@ -69,9 +69,9 @@ my_bool mi_check_unique(MI_INFO *info, MI_UNIQUEDEF *def, byte *record,
ha_checksum
mi_unique_hash
(
MI_UNIQUEDEF
*
def
,
const
byte
*
record
)
{
const
byte
*
pos
,
*
end
;
ha_checksum
crc
=
0
;
HA_KEYSEG
*
keyseg
;
ulong
crc
=
0
;
ulong
seed
=
4
;
HA_KEYSEG
*
keyseg
;
for
(
keyseg
=
def
->
seg
;
keyseg
<
def
->
end
;
keyseg
++
)
{
...
...
@@ -118,7 +118,7 @@ ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const byte *record)
(((
uchar
)
*
(
uchar
*
)
pos
++
)))
+
(
crc
>>
(
8
*
sizeof
(
ha_checksum
)
-
8
));
}
return
crc
;
return
(
ha_checksum
)
crc
;
}
/*
...
...
sql/field.cc
View file @
d5880298
...
...
@@ -4242,9 +4242,8 @@ int Field_string::cmp(const char *a_ptr, const char *b_ptr)
(
const
uchar
*
)
b_ptr
,
field_length
);
}
return
field_charset
->
coll
->
strnncoll
(
field_charset
,
(
const
uchar
*
)
a_ptr
,
field_length
,
(
const
uchar
*
)
b_ptr
,
field_length
);
return
my_strnncoll
(
field_charset
,(
const
uchar
*
)
a_ptr
,
field_length
,
(
const
uchar
*
)
b_ptr
,
field_length
);
}
void
Field_string
::
sort_string
(
char
*
to
,
uint
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