diff options
author | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-14 21:44:42 +0400 |
---|---|---|
committer | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-14 21:44:42 +0400 |
commit | 8959b690fe796a44ddda440290b3fe9a9cf89ca5 (patch) | |
tree | d80812bbab290e762f4a058cded480022c09d0f3 /include/hash.h | |
parent | ee1ef8c58c9df9a62f7a0cc3dee6c2f705c8eb44 (diff) | |
download | mariadb-git-8959b690fe796a44ddda440290b3fe9a9cf89ca5.tar.gz |
Hash now supports several charsets
Diffstat (limited to 'include/hash.h')
-rw-r--r-- | include/hash.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/hash.h b/include/hash.h index 8ca8d9fde02..49a75d98dcb 100644 --- a/include/hash.h +++ b/include/hash.h @@ -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); |