• Anel Husakovic's avatar
    MDEV-28455: CREATE TEMPORARY TABLES privilege is insufficient for SHOW COLUMNS · 64f822c1
    Anel Husakovic authored
    =========== Problem =============
    - `show columns` is not working for temporary tables, even though there
    is enough privilege `create temporary tables`.
    =========== Solution =============
    - Append `TMP_TABLE_ACLS` privilege when running `show columns` for temp
    tables.
    - Additionally `check_access()` for database only once, not for each
    field
    =========== Additionally =============
    - Update comments for function `check_table_access` arguments
    
    Reviewed by: <vicentiu@mariadb.org>
    64f822c1
sql_show.cc 351 KB