• Annamalai Gurusami's avatar
    Bug #20442523 CRASH WHEN CREATE TABLE VIOLATES FOREIGN KEY CONSTRAINT · 98b18c59
    Annamalai Gurusami authored
    Problem:
    
    This is a coding mistake during error handling.  When the specified foreign
    key constraint is wrong because of data type mismatch, the resulting
    foreign key object will not have valid foreign->id (it will be NULL.)
    
    Solution:
    
    While removing the foreign key object from dictionary cache during error
    handling, ensure that foreign->id is not null before using it.
    
    rb#8204 approved by Sunny.
    98b18c59
dict0dict.c 144 KB