Subject | Re: [firebird-support] Pre-testing delete for referential integrity issues |
---|---|
Author | Ann W. Harrison |
Post date | 2009-09-01T18:04:45Z |
Myles Wakeham wrote:
transaction could add a child record while you're doing your check
or even between your check and your delete.
Cheers,
Ann
>There is a risk with all the methods suggested that a concurrent
> ... rather than giving the user the ability to 'try' to delete the
> record and be told that they can't because of a violation of a
> referential integrity rule, I'd like to be more pro-active with this and
> only give them a delete option of the contact record has no related data
> that would stop a delete from occuring.
transaction could add a child record while you're doing your check
or even between your check and your delete.
Cheers,
Ann