List:Commits« Previous MessageNext Message »
From:Mikael Ronstrom Date:October 29 2009 12:08pm
Subject:bzr commit into mysql-5.5-next-mr branch (mikael:2910) Bug#48397
View as plain text  
#At file:///home/mikael/mysql_clones/mysql-next-wl3352/

 2910 Mikael Ronstrom	2009-10-29
      BUG#48397, set key_part->length to key_part->store_length isn't correct, store_length is a bit longer
      modified:
        sql/opt_range.cc

=== modified file 'sql/opt_range.cc'
--- a/sql/opt_range.cc	2009-10-28 17:32:48 +0000
+++ b/sql/opt_range.cc	2009-10-29 12:08:35 +0000
@@ -3605,8 +3605,8 @@ static bool create_partition_index_descr
   {
     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));

Thread
bzr commit into mysql-5.5-next-mr branch (mikael:2910) Bug#48397Mikael Ronstrom29 Oct