MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:ramil Date:November 2 2006 1:12pm
Subject:bk commit into 5.1 tree (ramil:1.2338) BUG#23762
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of ram. When ram does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-11-02 17:11:53+04:00, ramil@stripped +2 -0
  Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)
  
  When partition pruning is used we have to initialize key_part->flag in the 
  create_partition_index_descr() as it's checked in the get_mm_leaf().

  sql/opt_range.cc@stripped, 2006-11-02 17:11:49+04:00, ramil@stripped +5 -0
    Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)
      - set key_part->flag to 0.

  sql/opt_range.h@stripped, 2006-11-02 17:11:49+04:00, ramil@stripped +3 -1
    Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)
      - comment added.
    

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	ramil
# Host:	myoffice.izhnet.ru
# Root:	/usr/home/ram/work/mysql-5.1-maint

--- 1.244/sql/opt_range.cc	2006-11-02 17:12:03 +04:00
+++ 1.245/sql/opt_range.cc	2006-11-02 17:12:03 +04:00
@@ -3237,6 +3237,11 @@ static bool create_partition_index_descr
 
     key_part->field=        (*field);
     key_part->image_type =  Field::itRAW;
+    /* 
+      We set keypart flag to 0 here as the only HA_PART_KEY_SEG is checked
+      in the RangeAnalysisModule.
+    */
+    key_part->flag=         0;
     /* We don't set key_parts->null_bit as it will not be used */
 
     ppar->is_part_keypart[part]= !in_subpart_fields;

--- 1.70/sql/opt_range.h	2006-11-02 17:12:03 +04:00
+++ 1.71/sql/opt_range.h	2006-11-02 17:12:03 +04:00
@@ -26,7 +26,9 @@
 
 typedef struct st_key_part {
   uint16           key,part, store_length, length;
-  uint8            null_bit, flag;
+  uint8            null_bit;
+  /* Keypart flags (0 if partition pruning is used) */
+  uint8 flag;
   Field            *field;
   Field::imagetype image_type;
 } KEY_PART;
Thread
bk commit into 5.1 tree (ramil:1.2338) BUG#23762ramil2 Nov