mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-16110 ALTER with ALGORITHM=INPLACE breaks temporary table with virtual columns
Part two, temporary tables.
Make temporary tables respect TABLE::m_needs_reopen.
See also 77cd754229
This commit is contained in:
@ -1042,6 +1042,13 @@ TABLE *THD::find_temporary_table(const char *key, uint key_length,
|
||||
case TMP_TABLE_ANY: found= true; break;
|
||||
}
|
||||
}
|
||||
if (table && unlikely(table->m_needs_reopen))
|
||||
{
|
||||
share->all_tmp_tables.remove(table);
|
||||
free_temporary_table(table);
|
||||
it.rewind();
|
||||
continue;
|
||||
}
|
||||
result= table;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user