Subject | Re: Checking periods don't overlap |
---|---|
Author | peter_jacobi.rm |
Post date | 2004-06-15T06:20:50Z |
"Martijn Tonies" <m.tonies@u...> wrote:
by a DEFERRABLE, INITIALLY DEFERRED option, but aside
from reserving the keywords, nothing is implemented yet.
Anyway, I also think that it just shouldn't be possible
to insert records with violating this constraint, so this
should go into the bug tracker.
Regards,
Peter Jacobi
> ALTER TABLE UN_TEST ADD CONSTRAINT C_UN_TESTut.UNIQUE_COL
> CHECK (
>
> not exists (select ut.* from UN_TEST ut where new.UNIQUE_COL =
> and ut.PKCOL <> new.PKCOL)I'd assume this constraint would be better served
by a DEFERRABLE, INITIALLY DEFERRED option, but aside
from reserving the keywords, nothing is implemented yet.
Anyway, I also think that it just shouldn't be possible
to insert records with violating this constraint, so this
should go into the bug tracker.
Regards,
Peter Jacobi