summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-29 13:08:35 +0100
committerMikael Ronstrom <mikael@mysql.com>2009-10-29 13:08:35 +0100
commit53dc58d841597292e95a1a4105d29d6ec0d47e3e (patch)
tree76542c844996d31caef289bf4ec4ad1b44520821 /sql
parent470a44c70dedf9e58f914b51485280642f69a43f (diff)
downloadmariadb-git-53dc58d841597292e95a1a4105d29d6ec0d47e3e.tar.gz
BUG#48397, set key_part->length to key_part->store_length isn't correct, store_length is a bit longer
Diffstat (limited to 'sql')
-rw-r--r--sql/opt_range.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index e7e7b26731b..fb342359c5f 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -3605,8 +3605,8 @@ static bool create_partition_index_description(PART_PRUNE_PARAM *ppar)
{
key_part->key= 0;
key_part->part= part;
- key_part->length= (uint16)get_partition_field_store_length(*field);
- key_part->store_length= key_part->length;
+ key_part->length= (uint16)(*field)->key_length();
+ key_part->store_length= (uint16)get_partition_field_store_length(*field);
DBUG_PRINT("info", ("part %u length %u store_length %u", part,
key_part->length, key_part->store_length));