-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setting two foreign keys to associate with the same field, deleting data is normal but does not take effect #2671
Comments
HI @Mickls: Sorry for the delayed response here. I've tested this and it does seem to be a bug. We'll get it on our docket. Thanks for the report! |
I'm glad this issue has been responded to. In fact, it has caused many of my UTs to not run correctly, and I had to switch to other solutions. I would be very grateful if this problem can be solved. |
If this is a bug in Dolt as well, we'll move it to that queue and fix it in the next couple days. If not, it will be fixed in the next week or so. |
Hey @Mickls, thanks for reporting this issue! Fortunately, this issue was somehow only apparent in GMS and not dolt. |
Hey @Mickls, this has been fixed and merged to GMS main! |
I tested the merged code and it works fine |
I created a simple script to reproduce the problem
The above code performs the following operations: Create tables table_row and table_relation. The table table_relation contains source_row_id and target_row_id and both are foreign keys to the id field of table_row. Then insert data into the table and delete the data in table_row.
As can be seen from the printed output, we want to delete the row with id 1. The SQL statement runs without exception, but the deletion is not successful.
The text was updated successfully, but these errors were encountered: