summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/myisam/mi_open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/myisam/mi_open.c b/storage/myisam/mi_open.c
index 604dd1674ae..5bd5554db51 100644
--- a/storage/myisam/mi_open.c
+++ b/storage/myisam/mi_open.c
@@ -376,6 +376,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
{
uint real_length= pos->flag & HA_BLOB_PART ? pos->bit_start
: pos->length;
+ if (pos->type == HA_KEYTYPE_BIT && pos->bit_length)
+ real_length--;
set_if_bigger(share->vreclength, pos->start + real_length);
}
}