1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

my_sortcmp -> my_strnncoll

BitKeeper/deleted/.del-mf_casecnv.c~c269ed3dcafea441:
  Delete: mysys/mf_casecnv.c
This commit is contained in:
unknown
2002-10-09 16:33:35 +05:00
parent edb8ae0f38
commit 1b623a4032
11 changed files with 44 additions and 90 deletions

View File

@ -193,8 +193,9 @@ int key_cmp(TABLE *table,const byte *key,uint idx,uint key_length)
FIELDFLAG_PACK)))
{
/* BAR TODO: I'm not sure this should be system_charset_info */
if (my_sortcmp(system_charset_info,(char*) key,
(char*) table->record[0]+key_part->offset,length))
if (my_strnncoll(system_charset_info,
(const uchar*) key, length,
(const uchar*) table->record[0]+key_part->offset,length))
return 1;
}
else if (memcmp(key,table->record[0]+key_part->offset,length))