maria-developers team mailing list archive
Mailing list archive
Re: 3eceb51: MDEV-7990: ERROR 1526 when procedure executed for second time ALTER TABLE partition ... pMAX values less than MAXVALUE
On 12.06.15 13:09, Sergei Golubchik wrote:
What is wrong? I modified clone procedure which used for getting
work_part_info deeper copy which is following case 1.
On May 06, sanja@xxxxxxxxxxx wrote:
committer: Oleksandr Byelkin
branch nick: server
timestamp: 2015-05-06 13:19:22 +0200
MDEV-7990: ERROR 1526 when procedure executed for second time ALTER
TABLE partition ... pMAX values less than MAXVALUE
Added cleaning partition data which are saved in LEX structure to make
possible correct re-execution of a SP or PS using the code.
No, this is wrong. See prep_alter_part_table(). The first thing it does
it to copy thd->lex->part_info to thd->work_part_info. It tries to do a
deep copy to be able to modify it freely, but apparently the copy isn't
deep enough. I see two options
Here is the code in prep_alter_table()
if (thd->work_part_info &&
and I changed get_clone() method.
1. Do a deeper copy. Duplicate all value lists.
2. Make part_column_list_val elements immutable. That would be
preferred, of course, but I'm not sure it's possible.
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~maria-developers
More help : https://help.launchpad.net/ListHelp