• tmokmss's avatar
    MDEV-18873 Server crashes in Compare_identifiers::operator or in... · 827b049e
    tmokmss authored
    MDEV-18873 Server crashes in Compare_identifiers::operator or in my_strcasecmp_utf8 upon ADD PERIOD IF NOT EXISTS with empty name
    
    empty identifier specified as `` ends up with a NULL LEX_CSTRING::str in lexer.
    This is not considered correct in upper layers, for example in Compare_identifiers::operator().
    Empty column name is usually avoided by a check_column_name() call while parsing,
    and period name matches the column name completely.
    Hence, this fix uses the mentioned call for verification, too.
    827b049e
alter.result 7.55 KB