diff options
author | unknown <serg@serg.mylan> | 2004-08-01 13:26:01 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-08-01 13:26:01 +0200 |
commit | d14a27fdadeec3cd7c29b04b7051f32e66320087 (patch) | |
tree | 6d221952b67a636cef97629f4983774c40f53206 /myisam | |
parent | 9ca47d047e5164515eac6fcae05ae9450cb94213 (diff) | |
download | mariadb-git-d14a27fdadeec3cd7c29b04b7051f32e66320087.tar.gz |
bug#4816. index search for NULL in blob
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_key.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/myisam/mi_key.c b/myisam/mi_key.c index 766ecf334b6..1688ab74823 100644 --- a/myisam/mi_key.c +++ b/myisam/mi_key.c @@ -177,6 +177,8 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old, if (!(*key++= (char) 1-*old++)) /* Copy null marker */ { k_length-=length; + if (keyseg->flag & (HA_VAR_LENGTH | HA_BLOB_PART)) + k_length-=2; /* Skip length */ continue; /* Found NULL */ } } |