• Sergei Golubchik's avatar
    MDEV-12459 post-review fixes · 62decb5e
    Sergei Golubchik authored
    * IS_USER_TEMP_TABLE() was misleading, name didn't match the code
    * list of temp tables was rescanned number_of_databases times
    * some temporary tables were not shown (from nonexistent databases)
    * some temporary tables were shown more than once (e.g. after self-joins)
    * sys.table_exists() - avoid querying I_S twice
    * fix handling of temporary MERGE tables - it's pointless to fully open
      them, they're not in thd->temporary_tables, so they simply fail to
      open and are skipped. Relax the assertion instead.
    62decb5e
sql_show.cc 351 KB