1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

bug #17290 (sp with delete, create and rollback causes MySQLD core)

additional fixes
This commit is contained in:
holyfoot@vva.(none)
2006-03-20 17:30:01 +04:00
parent 87a4e300a1
commit a68742f460
5 changed files with 73 additions and 7 deletions

View File

@ -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 &