• Sreeharsha Ramanavarapu's avatar
    Bug #20777016: DELETE CHECKS PRIVILEGES ON THE WRONG · 6fb2cdbc
    Sreeharsha Ramanavarapu authored
                   DATABASE WHEN USING TABLE ALIASES
    
    Issue:
    -----
    When using table aliases for deleting, MySQL checks
    privileges against the current database and not the
    privileges on the actual table or database the table
    resides.
    
    
    SOLUTION:
    ---------
    While checking privileges for multi-deletes,
    correspondent_table should be used since it points to the
    correct table and database.
    6fb2cdbc
sql_parse.cc 232 KB