diff options
author | evgen@moonbone.local <> | 2006-06-14 23:54:08 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2006-06-14 23:54:08 +0400 |
commit | e35a0ca4b776c101667e447618f808ed0a51ca81 (patch) | |
tree | 9f2d34990366073803ede28b005fe7965ee7d736 /sql/structs.h | |
parent | 36fae7be6337f4903ffef70fca50afd3be13a978 (diff) | |
parent | c9077f07e708f55ec4241fdb62ebd271707cb824 (diff) | |
download | mariadb-git-e35a0ca4b776c101667e447618f808ed0a51ca81.tar.gz |
Manually merged
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 9421ebdc2af..41b5f3b39c5 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 */ |