summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2006-06-14 23:54:08 +0400
committerunknown <evgen@moonbone.local>2006-06-14 23:54:08 +0400
commit9936533be9359176ae7f196ef3291c5ee0df2e97 (patch)
tree9f2d34990366073803ede28b005fe7965ee7d736 /sql/structs.h
parentb395f9c29e0c01e8e37d6c62f5fc54d9118da2a3 (diff)
parent15462dd90a3fe1129d795aa99eb8a8c6f15154e5 (diff)
downloadmariadb-git-9936533be9359176ae7f196ef3291c5ee0df2e97.tar.gz
Manually merged
mysql-test/r/cast.result: Auto merged mysql-test/t/func_time.test: Auto merged sql/item_cmpfunc.h: Auto merged sql/item_strfunc.cc: Auto merged sql/item_timefunc.cc: Auto merged sql/item_timefunc.h: Auto merged sql/opt_sum.cc: Auto merged sql/structs.h: Auto merged
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h8
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 */