summaryrefslogtreecommitdiff
path: root/myisam/mi_create.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-12-27 21:39:35 +0200
committerunknown <monty@mashka.mysql.fi>2002-12-27 21:39:35 +0200
commitd78c9adb55a7f43bc234cfbf818ce8183ec73daf (patch)
tree80868d909a3253f702316058295646695044c0d3 /myisam/mi_create.c
parent22611051945dc581414895086bd114dd597f69c7 (diff)
downloadmariadb-git-d78c9adb55a7f43bc234cfbf818ce8183ec73daf.tar.gz
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
Diffstat (limited to 'myisam/mi_create.c')
-rw-r--r--myisam/mi_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_create.c b/myisam/mi_create.c
index 6941db158e1..5a5a49533da 100644
--- a/myisam/mi_create.c
+++ b/myisam/mi_create.c
@@ -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++)