G
Guest
I am using ForeignKeyConstraints so that when I change a parent row's key,
the child rows are updated with the appropriate key.
The problem that I am running into is that I would like to be able to add a
row to a table with a value that would not fit a stated constraint. So, I
could add a child row with a value of 5, but there would be no corresponding
parent row with that key. If I have a ForeignKeyConstraint in place, an
exception is thrown in this situation.
How can I get the benefit of auto updating values, without getting
execeptions for creating child rows with no parent?
the child rows are updated with the appropriate key.
The problem that I am running into is that I would like to be able to add a
row to a table with a value that would not fit a stated constraint. So, I
could add a child row with a value of 5, but there would be no corresponding
parent row with that key. If I have a ForeignKeyConstraint in place, an
exception is thrown in this situation.
How can I get the benefit of auto updating values, without getting
execeptions for creating child rows with no parent?