diff options
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/structs.h b/sql/structs.h index 3a090fd203f..9dffe1e1b8c 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -53,7 +53,8 @@ typedef struct st_key_part_info { /* Info about a key part */ Field *field; uint offset; /* offset in record (from 0) */ uint null_offset; /* Offset to null_bit in record */ - uint16 length; /* Length of keypart value in bytes */ + /* Length of key part in bytes, excluding NULL flag and length bytes */ + uint16 length; /* Number of bytes required to store the keypart value. This may be different from the "length" field as it also counts |