• Mattias Jonsson's avatar
    Bug#30573: Ordered range scan over partitioned tables returns some rows twice · 3e1d88d1
    Mattias Jonsson authored
    and
    Bug#33555: Group By Query does not correctly aggregate partitions
    
    Backport of bug-33257 which is the same bug.
    
    read_range_*() calls was not passed to the partition handlers,
    but was translated to index_read/next family calls.
    Resulting in duplicates rows and wrong aggregations.
    
    mysql-test/r/partition_range.result:
      Bug#30573: Ordered range scan over partitioned tables returns some rows twice
      
      Updated result file
    mysql-test/t/partition_range.test:
      Bug#30573: Ordered range scan over partitioned tables returns some rows twice
      
      Re-enabled the test
    sql/ha_partition.cc:
      Bug#30573: Ordered range scan over partitioned tables returns some rows twice
      
      backport of bug-33257, correct handling of read_range_* calls,
      without converting them to index_read/next calls
    sql/ha_partition.h:
      Bug#30573: Ordered range scan over partitioned tables returns some rows twice
      
      backport of bug-33257, correct handling of read_range_* calls,
      without converting them to index_read/next calls
    3e1d88d1
ha_partition.cc 176 KB