diff options
author | sergefp@mysql.com <> | 2006-06-14 21:06:02 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2006-06-14 21:06:02 +0400 |
commit | 6e5f578a46dcea8760551f72c4d6a77d986f8c4c (patch) | |
tree | 4c138ddae81554696f5cc83ae8a2fe38c39b3112 /sql/structs.h | |
parent | d4942a26350421dcb5a6f0d3577255f7bbe14b4e (diff) | |
download | mariadb-git-6e5f578a46dcea8760551f72c4d6a77d986f8c4c.tar.gz |
Better comments in KEY_PART_INFO struct
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/structs.h b/sql/structs.h index 081ada88bf7..2037496635a 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -70,7 +70,13 @@ 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 key_part */ + uint16 length; /* Length of keypart value in bytes */ + /* + Number of bytes required to store the keypart value. This may be + different from the "length" field as it also counts + - possible NULL-flag byte (see HA_KEY_NULL_LENGTH) + - possible HA_KEY_BLOB_LENGTH bytes needed to store actual value length. + */ uint16 store_length; uint16 key_type; uint16 fieldnr; /* Fieldnum in UNIREG */ |