summaryrefslogtreecommitdiff
path: root/myisam/ft_update.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-07-12 14:09:51 +0200
committerunknown <serg@serg.mysql.com>2001-07-12 14:09:51 +0200
commit7b0cf9180a54f463307315b837c96e1884eb6886 (patch)
tree90b91a5e24bd821b52d44e26adb8f84e3b1be092 /myisam/ft_update.c
parentcb696ba1f3f7d64dbedd64487c7d02660251f98f (diff)
downloadmariadb-git-7b0cf9180a54f463307315b837c96e1884eb6886.tar.gz
bug fixed
Diffstat (limited to 'myisam/ft_update.c')
-rw-r--r--myisam/ft_update.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/myisam/ft_update.c b/myisam/ft_update.c
index 658ea9282f3..753c4dc4029 100644
--- a/myisam/ft_update.c
+++ b/myisam/ft_update.c
@@ -145,6 +145,10 @@ int _mi_ft_cmp(MI_INFO *info, uint keynr, const byte *rec1, const byte *rec2)
memcpy_fixed(&pos2,pos2+keyseg->bit_start,sizeof(char*));
set_if_smaller(len2,keyseg->length);
}
+ else /* fixed length key */
+ {
+ len1=len2=keyseg->length;
+ }
if ((len1 != len2) || memcmp(pos1, pos2, len1))
return THOSE_TWO_DAMN_KEYS_ARE_REALLY_DIFFERENT;
}