• unknown's avatar
    Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses · 9e081bd2
    unknown authored
                the wrong buffer
    
    handler::index_next_same() did not take into account that the
    internally called function key_cmp_if_same() uses the fixed
    buffer table->record[0] for key comparison instead of the
    buffer provided by the caller of handler::index_next_same().
    
    Added code to temporarily redirect table->record[0] and the fields
    used for the key to the record buffer provided by the caller of
    handler::index_next_same().
    
    The test case is in partition.test already.
    
    
    sql/handler.cc:
      Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses
                  the wrong buffer
      Added code to temporarily redirect table->record[0] and the fields
      used for the key to the record buffer provided by the caller of
      handler::index_next_same().
    9e081bd2
handler.cc 112 KB