Commit 516bcf50 authored by serg@serg.mylan's avatar serg@serg.mylan

after merge fix

parent 035e03c1
...@@ -69,9 +69,9 @@ my_bool mi_check_unique(MI_INFO *info, MI_UNIQUEDEF *def, byte *record, ...@@ -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) ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const byte *record)
{ {
const byte *pos, *end; const byte *pos, *end;
ha_checksum crc=0; ulong crc= 0;
HA_KEYSEG *keyseg;
ulong seed= 4; ulong seed= 4;
HA_KEYSEG *keyseg;
for (keyseg=def->seg ; keyseg < def->end ; keyseg++) for (keyseg=def->seg ; keyseg < def->end ; keyseg++)
{ {
...@@ -118,7 +118,7 @@ ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const byte *record) ...@@ -118,7 +118,7 @@ ha_checksum mi_unique_hash(MI_UNIQUEDEF *def, const byte *record)
(((uchar) *(uchar*) pos++))) + (((uchar) *(uchar*) pos++))) +
(crc >> (8*sizeof(ha_checksum)-8)); (crc >> (8*sizeof(ha_checksum)-8));
} }
return crc; return (ha_checksum)crc;
} }
/* /*
......
...@@ -4242,8 +4242,7 @@ int Field_string::cmp(const char *a_ptr, const char *b_ptr) ...@@ -4242,8 +4242,7 @@ int Field_string::cmp(const char *a_ptr, const char *b_ptr)
(const uchar*) b_ptr, (const uchar*) b_ptr,
field_length); field_length);
} }
return field_charset->coll->strnncoll(field_charset, return my_strnncoll(field_charset,(const uchar*) a_ptr, field_length,
(const uchar*) a_ptr, field_length,
(const uchar*) b_ptr, field_length); (const uchar*) b_ptr, field_length);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment