• Gleb Shchepa's avatar
    Bug #15948123: SERVER WORKS INCORRECT WITH LONG TABLE ALIASES · 9c59f5a5
    Gleb Shchepa authored
    Code in MDL subsystem assumes that identifiers of objects can't
    be longer than NAME_LEN characters. This assumption was broken
    when one tried to construct MDL_key based on table alias, which
    can have arbitrary length. Since MDL_key's (and MDL locks) are
    not really used for table aliases this patch changes code to
    not initialize MDL_key object for table list element representing
    aliases.
    9c59f5a5
sql_parse.cc 227 KB