| 371 | */ |
| 372 | |
| 373 | static int hashcmp(const HASH *hash, HASH_LINK *pos, const uchar *key, |
| 374 | size_t length) |
| 375 | { |
| 376 | size_t rec_keylength; |
| 377 | uchar *rec_key= (uchar*) my_hash_key(hash, pos->data, &rec_keylength, 1); |
| 378 | return ((length && length != rec_keylength) || |
| 379 | my_strnncoll(hash->charset, (uchar*) rec_key, rec_keylength, |
| 380 | (uchar*) key, rec_keylength)); |
| 381 | } |
| 382 | |
| 383 | |
| 384 | /* Write a hash-key to the hash-index */ |
no test coverage detected