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
Deleting a tuple that has a Foreign Key constraint correctly fails, but it is removed from the filter #1511
Comments
As a general kind of thought, it's probably worth either grabbing a recent nightly build or building from source yourself. We've fixes a lot of foreign key bits since the last major release, so there's a decent chance this will already have been taken care of. 😄 |
ok, i'll give it a try and report back. |
The problem persists in the daily build: Version 3.10.99 (Aug 20 2018) |
Damn. Oh well, it's good you checked. At least we now know it's a current problem that needs looking at still. 😄 |
If the deletion of a record is rejected by the SQLite3, for example, due to the presence of Foreign Key constraints, the corresponding rows must not be deleted from the model.
If the deletion of a record is rejected by the SQLite3, for example, due to the presence of Foreign Key constraints, the corresponding rows must not be deleted from the model.
Did you have a chance to test this already, @dmgerman? |
Sorry, for taking time to reply. I just did. Version 3.10.99 (Sep 30 2018). The bug seems to be gone. thank you very much, |
Excellent. Thanks for getting back to us @dmgerman. 😄 |
Details for the issue
What did you do?
Assume the following schema:
create table parent (a int, primary key a);
create table child(a int, b int, primary key (a,b), foreign key (a) references parent);
add values:
insert into parent values (1), (2), (3);
insert into child values (1,10), (2,20), (3,30);
make sure that the foreign key pragma is on.
now, try to delete a tuple in parent (any). it will get an error. This is ok.
the bug:
you will get an error, this is ok
What did you expect to see?
The tuple I am trying to delete should always be displayed.
What did you see instead?
The tuple disappears from the view (but it has not been deleted)
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
What is your DB4S version?
Did you also
The text was updated successfully, but these errors were encountered: