mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge hynda.mysql.fi:/home/my/mysql-5.1-main
into hynda.mysql.fi:/home/my/mysql-5.1-marvel include/my_sys.h: Auto merged sql/ha_partition.cc: Auto merged sql/handler.cc: Auto merged sql/item_func.cc: Auto merged sql/opt_range.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.cc: Auto merged storage/myisam/ft_boolean_search.c: Auto merged storage/myisam/ft_parser.c: Auto merged storage/myisam/mi_check.c: Auto merged
This commit is contained in:
@@ -3341,18 +3341,16 @@ static bool create_partition_index_description(PART_PRUNE_PARAM *ppar)
|
||||
{
|
||||
key_part->key= 0;
|
||||
key_part->part= part;
|
||||
key_part->length= (uint16) (*field)->pack_length_in_rec();
|
||||
/*
|
||||
psergey-todo: check yet again if this is correct for tricky field types,
|
||||
e.g. see "Fix a fatal error in decimal key handling" in open_binary_frm()
|
||||
*/
|
||||
key_part->store_length= (uint16) (*field)->pack_length();
|
||||
key_part->store_length= key_part->length= (uint16) (*field)->key_length();
|
||||
if ((*field)->real_maybe_null())
|
||||
key_part->store_length+= HA_KEY_NULL_LENGTH;
|
||||
if ((*field)->type() == MYSQL_TYPE_BLOB ||
|
||||
(*field)->real_type() == MYSQL_TYPE_VARCHAR)
|
||||
key_part->store_length+= HA_KEY_BLOB_LENGTH;
|
||||
|
||||
DBUG_PRINT("info", ("part %u length %u store_length %u", part,
|
||||
key_part->length, key_part->store_length));
|
||||
|
||||
key_part->field= (*field);
|
||||
key_part->image_type = Field::itRAW;
|
||||
/*
|
||||
|
Reference in New Issue
Block a user