Subject | Re: [firebird-support] Re: Checking periods don't overlap |
---|---|
Author | Ann W. Harrison |
Post date | 2004-06-16T16:19:05Z |
><Ivan.Prenosil@s...> wrote:At 08:11 AM 6/16/2004, johnsparrowuk wrote:
> > Do you think the problem lies in multi-versioning ?
>I think if you guys can't make this work properly then it's aIt's a weakness in the implementation of constraints, but has
>weakness, yes.
nothing to do with multi-versioning. In a conventional locking
system you would have the same problem unless you lock the
table while you write to it and hold the lock until you commit.
The solution is not to allow user code to read uncommitted
records, but to redesign the implementation of constraints so
they work more like unique indexes and less like triggers.
Regards,
Ann