List:Commits« Previous MessageNext Message »
From:Mattias Jonsson Date:January 9 2009 1:18pm
Subject:bzr commit into mysql-5.1-bugteam branch (mattias.jonsson:2729)
Bug#40972
View as plain text  
#At file:///Users/mattiasj/clones/bzrroot/topush-51-bugteam/ based on revid:sven@stripped

 2729 Mattias Jonsson	2009-01-09
      Bug#40972: Partition pruning can lead to crash for bad dates
      
      post push fix, added test found a valgrind warning
modified:
  sql/sql_partition.cc

per-file messages:
  sql/sql_partition.cc
    Bug#40972: Partition pruning can lead to crash for bad dates
    
    Fix for valgrind warning
=== modified file 'sql/sql_partition.cc'
--- a/sql/sql_partition.cc	2009-01-07 22:28:49 +0000
+++ b/sql/sql_partition.cc	2009-01-09 13:18:08 +0000
@@ -6678,6 +6678,7 @@ int get_part_iter_for_interval_via_mappi
   uint32             max_endpoint_val;
   get_endpoint_func  get_endpoint;
   uint field_len= field->pack_length_in_rec();
+  part_iter->ret_null_part= part_iter->ret_null_part_orig= FALSE;
 
   if (part_info->part_type == RANGE_PARTITION)
   {
@@ -6698,7 +6699,6 @@ int get_part_iter_for_interval_via_mappi
     max_endpoint_val=    part_info->no_list_values;
     part_iter->get_next= get_next_partition_id_list;
     part_iter->part_info= part_info;
-    part_iter->ret_null_part= part_iter->ret_null_part_orig= FALSE;
     if (max_endpoint_val == 0)
     {
       /*

Thread
bzr commit into mysql-5.1-bugteam branch (mattias.jonsson:2729)Bug#40972Mattias Jonsson9 Jan