diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-04-01 18:42:15 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:27 +0100 |
commit | d2408e43f912d91de3c982330d62f717e63efbc5 (patch) | |
tree | 0ec49c50f2013665a6147d3afda403619704fb45 /sql/structs.h | |
parent | 3a3017a5664e868d94df483c1cfc7c9876ae79d2 (diff) | |
download | mariadb-git-d2408e43f912d91de3c982330d62f717e63efbc5.tar.gz |
cleanup: fix a comment
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/structs.h b/sql/structs.h index e51f3e0fe3a..144e12ca06c 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -64,9 +64,11 @@ typedef struct st_keyfile_info { /* used with ha_info() */ 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 */ + Field *field; /* the Field object for the indexed + prefix of the original table Field. + NOT necessarily the original Field */ + uint offset; /* Offset in record (from 0) */ + uint null_offset; /* Offset to null_bit in record */ /* Length of key part in bytes, excluding NULL flag and length bytes */ uint16 length; /* @@ -77,9 +79,8 @@ typedef struct st_key_part_info { /* Info about a key part */ */ uint16 store_length; uint16 key_type; - /* Fieldnr begins counting from 1 */ - uint16 fieldnr; /* Fieldnum in UNIREG */ - uint16 key_part_flag; /* 0 or HA_REVERSE_SORT */ + uint16 fieldnr; /* Fieldnr begins counting from 1 */ + uint16 key_part_flag; /* 0 or HA_REVERSE_SORT */ uint8 type; uint8 null_bit; /* Position to null_bit */ } KEY_PART_INFO ; |