[MDEV-12337] Flashback and foreign key Created: 2017-03-23 Updated: 2017-03-26 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | 10.2.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Devin Yu | Assignee: | Ian Gilfillan |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | flashback, foreign-keys | ||
| Environment: |
CentOS Linux release 7.3.1611 x86_64 |
||
| Description |
|
1. I have encountered a issue about foreign key when I tested flashback function.Foreign key(ON DELETE CASCADE ON UPDATE CASCADE) doesn't work when the primary key of master table is deleted on mariadb-10.2.4.
2.The foreign key (ON DELETE CASCADE ON UPDATE CASCADE) of slave table will be deleted when the primary key of master table is deleted, |
| Comments |
| Comment by Elena Stepanova [ 2017-03-26 ] |
|
The problem lies outside the flashback scope. Flashback can only revert what it finds in the binary log. Cascading operations are currently not logged, thus flashback does not work with them. greenman, while at it, could you please double-check current flashback documentation in KB? It's not big, so it shouldn't take too much time, and I think some corrections might be needed, factual and/or otherwise. Also, I've seen several references to --support-flashback variable in various places. I've fixed those that I found, but maybe there are more. |