We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4193fa7 commit 8ed5fdeCopy full SHA for 8ed5fde
sql/sql_select.cc
@@ -11472,14 +11472,16 @@ void JOIN_TAB::cleanup()
11472
}
11473
else
11474
{
11475
+ TABLE_LIST *tmp= table->pos_in_table_list;
11476
end_read_record(&read_record);
- table->pos_in_table_list->jtbm_subselect->cleanup();
11477
+ tmp->jtbm_subselect->cleanup();
11478
/*
11479
The above call freed the materializedd temptable. Set it to NULL so
11480
that we don't attempt to touch it if JOIN_TAB::cleanup() is invoked
11481
multiple times (it may be)
11482
*/
- table=NULL;
11483
+ tmp->table= NULL;
11484
+ table= NULL;
11485
11486
DBUG_VOID_RETURN;
11487
0 commit comments