diff options
Diffstat (limited to 'heap')
-rw-r--r-- | heap/hp_create.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/heap/hp_create.c b/heap/hp_create.c index 5265607ce53..02725576c8f 100644 --- a/heap/hp_create.c +++ b/heap/hp_create.c @@ -50,6 +50,7 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef, length+= keyinfo->seg[j].length; if (keyinfo->seg[j].null_bit) { + length++; if (!(keyinfo->flag & HA_NULL_ARE_EQUAL)) keyinfo->flag|= HA_NULL_PART_KEY; if (keyinfo->algorithm == HA_KEY_ALG_BTREE) |