summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorramil@mysql.com <>2005-04-26 19:46:52 +0500
committerramil@mysql.com <>2005-04-26 19:46:52 +0500
commitdb2b729c737cb5de3b56d7bc1870f0778ef71f2c (patch)
tree0491b7d62c87d9264d6fc023e653de4309c83d75 /myisam
parent50ada0a01c9cd9a0d50f82db44de19d07fcee986 (diff)
downloadmariadb-git-db2b729c737cb5de3b56d7bc1870f0778ef71f2c.tar.gz
A fix (bug #10176: problem with varchar keys).
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_key.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/myisam/mi_key.c b/myisam/mi_key.c
index ab5ddd3a378..d7d10e116aa 100644
--- a/myisam/mi_key.c
+++ b/myisam/mi_key.c
@@ -242,7 +242,10 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
{
k_length-=length;
if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART))
+ {
k_length-=2; /* Skip length */
+ old+= 2;
+ }
continue; /* Found NULL */
}
}