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

Hash now supports several charsets

This commit is contained in:
unknown
2002-03-14 21:44:42 +04:00
parent ee1ef8c58c
commit 8959b690fe
18 changed files with 54 additions and 38 deletions

View File

@ -40,10 +40,12 @@ typedef struct st_hash {
DYNAMIC_ARRAY array; /* Place for hash_keys */
hash_get_key get_key;
void (*free)(void *);
uint (*calc_hashnr)(const byte *key,uint length);
uint (*calc_hashnr)(CHARSET_INFO *cs, const byte *key,uint length);
CHARSET_INFO *charset;
} HASH;
my_bool hash_init(HASH *hash,uint default_array_elements, uint key_offset,
my_bool hash_init(HASH *hash,CHARSET_INFO *charset,
uint default_array_elements, uint key_offset,
uint key_length, hash_get_key get_key,
void (*free_element)(void*), uint flags);
void hash_free(HASH *tree);