• Anel Husakovic's avatar
    MDEV-31618: Server crashes in process_i_s_table_temporary_tables/get_all_tables · 82d9d72f
    Anel Husakovic authored
    - Pre-open temporary table on sequence creation.
    - Without this patch, if rename alter is done on the temporary sequence,
      and after that `create replace`, since table is not preopened and
      alter rename marked the table as reopen, and such table is deleted in
      the `find_temporary_table()` leaving the share without the table, that
      causes `show tables` to fail
    - Closes PR #2685
    - Reviewer: <serg@mariadb.com>
    82d9d72f
sql_parse.cc 322 KB