1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-15572: view.test, server crash with --big-tables=1

Check that table is really opened before cleanup using handler.
This commit is contained in:
Oleksandr Byelkin
2019-07-11 14:50:50 +02:00
parent 1a79a29c87
commit cc86a0bd11
3 changed files with 40 additions and 1 deletions

View File

@ -3743,8 +3743,12 @@ void select_insert::abort_result_set() {
example), no table will have been opened and therefore 'table'
will be NULL. In that case, we still need to execute the rollback
and the end of the function.
If it fail due to inability to insert in multi-table view for example,
table will be assigned with view table structure, but that table will
not be opened really (it is dummy to check fields types & Co).
*/
if (table)
if (table && table->file->get_table())
{
bool changed, transactional_table;
/*