Comment 1 for bug 951588

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Re: I_S.GLOBAL_TEMPORARY_TABLES crashes debug builds on ALTER TABLE

Encountered similar problem with INFORMATION_SCHEMA.TEMPORARY_TABLES. (without GLOBAL_). The problem is that sql_show.cc:fill_global_temporary_tables enumerates existing temp table handler objects. Then for each object the handler ::info method is called in store_temporary_table_record that proceeds to overwrite current_thd, prebuilt->trx and possibly other fields of any operation in progress for that temp table handler.