mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
bug #17290 (sp with delete, create and rollback causes MySQLD core)
additional fixes mysql-test/r/partition.result: result fixed mysql-test/t/partition.test: testcase sql/sql_parse.cc: part_info cloning moved here sql/sql_partition.cc: fixes sql/sql_table.cc: part_info cloning removed
This commit is contained in:
@@ -3760,7 +3760,7 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
|
||||
}
|
||||
}
|
||||
else
|
||||
part_info= old_lex->part_info;
|
||||
part_info= thd->work_part_info;
|
||||
}
|
||||
table->part_info= part_info;
|
||||
table->file->set_part_info(part_info);
|
||||
@@ -4077,7 +4077,9 @@ uint prep_alter_part_table(THD *thd, TABLE *table, ALTER_INFO *alter_info,
|
||||
if (table->part_info)
|
||||
table->s->version= 0L;
|
||||
|
||||
if (!(thd->work_part_info= thd->lex->part_info->get_clone()))
|
||||
thd->work_part_info= thd->lex->part_info;
|
||||
if (thd->work_part_info &&
|
||||
!(thd->work_part_info= thd->lex->part_info->get_clone()))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
if (alter_info->flags &
|
||||
|
Reference in New Issue
Block a user