• Vasil Dimov's avatar
    Fix Bug#12661768 UPDATE IGNORE CRASHES SERVER IF TABLE IS INNODB AND IT IS · 7312f83c
    Vasil Dimov authored
    PARENT FOR OTHER ONE
    
    Do not try to lookup key_nr'th key in 'table' because there may not be such
    a key there. key_nr is the number of the key in the _child_ table name, not
    in the parent table.
    
    Instead just print the fields of the record that are covered by the first key
    defined on the parent table.
    
    This bug gets a better fix in MySQL 5.6, which is too risky for 5.1 and 5.5.
    
    Approved by:	Jon Olav Hauglid (via IM)
    7312f83c
handler.cc 142 KB