mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed max_key_length when using UNIQUE keys.
This fixed a bug in GROUP BY on a BLOB column with NULL values. myisam/mi_create.c: Fixed max_key_length when using UNIQUE keys. myisam/mi_unique.c: Simple optimization Make different CRC for keys with null and empty strings. mysql-test/r/group_by.result: Updated results mysql-test/t/group_by.test: Test of bug
This commit is contained in:
@ -224,7 +224,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
|
||||
if (uniques)
|
||||
{
|
||||
max_key_block_length= MI_KEY_BLOCK_LENGTH;
|
||||
max_key_length= MI_UNIQUE_HASH_LENGTH;
|
||||
max_key_length= MI_UNIQUE_HASH_LENGTH + pointer;
|
||||
}
|
||||
|
||||
for (i=0, keydef=keydefs ; i < keys ; i++ , keydef++)
|
||||
|
Reference in New Issue
Block a user