[MDEV-24990] Delete with table name on system versioned table with cascading delete fails Created: 2021-02-25 Updated: 2023-07-20 Resolved: 2023-07-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Delete, Versioned Tables |
| Affects Version/s: | 10.3.27, 10.3, 10.4, 10.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ryan Stark | Assignee: | Aleksey Midenkov |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.3.27-MariaDB-0+deb10u1 |
||
| Attachments: |
|
| Description |
|
Version 10.3.27 on Debian tested, have not tested other platforms. Create two tables, both with system versioning. Table one has some random records in it. Table two has a foreign key reference to table one with a cascading delete. Create some records. Running a delete query of the format "DELETE table1 FROM table1" does not cascade the deletion to table2 while the query "DELETE FROM table1" does cascade as expected.
|
| Comments |
| Comment by Alice Sherepa [ 2021-02-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report! I repeated on 10.3-10.5:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2023-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Doesn't reproduce in latest 10.4, 10.5 |