• Magne Mahre's avatar
    Bug#50542 5.5.x doesn't check length of key prefixes: · 93cd02bc
    Magne Mahre authored
              corruption and crash results
          
    An index creation statement where the index key
    is larger/wider than the column it references 
    should throw an error.
          
    A statement like:
      CREATE TABLE t1 (a CHAR(1), PRIMARY KEY (A(255)))
    did not error, but a segmentation fault followed when
    an insertion was attempted on the table
          
    The partial key validiation clause has been 
    restructured to (hopefully) better document which
    uses of partial keys are valid.
    
    93cd02bc
alter_table.test 29.4 KB