• Alexander Barkov's avatar
    Bug#52121 partition by key on utf32 enum field cause debug assertion: (length % 4) == 0 · 622250cb
    Alexander Barkov authored
          
    Problem: ENUM columns are sorted and distributed according to their
    numeric value, but Field::hash() incorrectly passed string character set
    (utf32) in combination with numeric value to the hash function,
    which made assertion fail.
    
    Fix: pass "binary" character set in combination with numeric value
    to the hash function.
    
      mysql-test/suite/parts/r/part_ctype_utf32.result
      Adding tests
    
      mysql-test/suite/parts/t/part_ctype_utf32.test
      Adding test
    
      sql/field.cc
      Pass correct character set pointer to the hash function.
    622250cb
field.cc 283 KB