Commit 0ac1764
Aditya A
Bug#33327093 FK: assertion failure in row_MySQL_pad_col
Analysis
--------
1. The parent table has 3 column of datatype (i) int (PK) (ii) varchar
(iii) a virtual column which is generated by varchar column.
2. The child table has a column which is referring to the primary key
of the parent table.
3. There is a update in the parent table which changes the primary key
and the varchar column, so it tries to build the update node to
propagate to the child table.
4. While building the update node it is trying to build the update
field for virtual column which is causing the crash.
FIX
===
1. The virtual column update should not be present in the update node,
because no column in child table can have a foreign key
relationship with a virtual column.
2. So skip the update to the virtual column when building the update node
for child table
Change-Id: Iff7d1f32c7c9d846453c587fc0c5b8604ec679ec1 parent ebdc6a2 commit 0ac1764
File tree
4 files changed
+18
-4
lines changed- storage/innobase
- include
- row
4 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
599 | 603 | | |
600 | 604 | | |
601 | 605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
590 | 592 | | |
591 | 593 | | |
592 | 594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
| |||
0 commit comments