• Sergey Glukhov's avatar
    Bug#50591 bit(31) causes Duplicate entry '1-NULL' for key 'group_key' · 82e2d858
    Sergey Glukhov authored
    The problem is that during temporary table creation uneven bits
    are not taken into account for hidden fields. It leads to incorrect
    calculation&allocation of null bytes size for table record. And
    if grouped value is null we set wrong bit for this value(see end_update()).
    Fixed by adding separate calculation of uneven bit for hidden fields.
    
    
    mysql-test/r/type_bit.result:
      test case
    mysql-test/t/type_bit.test:
      test case
    sql/sql_select.cc:
      added separate calculation of uneven bit for hidden fields
    82e2d858
sql_select.cc 542 KB