• Jan Lindström's avatar
    MDEV-7538: Wrong constraint (TINYINT or MEDIUMINT and INT) · 8cc97511
    Jan Lindström authored
    causes server crash
    
    Analysis: If wrong data types used on foreign constraint there
    was possibility that foreign->id is NULL when incorrect
    foreign constraint was removed from the dictionary cache.
    
    Fix: Add guard foreign->id != NULL before trying to lookup
    or remove the foreign constraint from dictionary cache.
    
    Tested using user database where problem was repeatable.
    8cc97511
dict0dict.c 158 KB