Subject | Re: Transactions and triggers |
---|---|
Author | Adam |
Post date | 2006-09-14T23:37:46Z |
The code that enforces them is in
correct or incorrect, but rather as 'the way it behaves'. No-one I
have spoken to thinks that it is ideal, so I was sure if it was a 2
minute fix it would have been done a long time ago.
Everyone at some point has their hands tied by legacy implementation
decisions. There is a workaround using a trigger to insert a record
into another table with a unique constraint (suggested by Set) which
would allow this logic to work.
Adam
> the index handling and is outside the current transaction context.I suspected as much. That is why I avoid thinking of it in terms of
> So this problem is (somewhat) tied into the issue of creating foreign
> key constraints that don't require indexes. It's a major rethinking
> of constraints.
correct or incorrect, but rather as 'the way it behaves'. No-one I
have spoken to thinks that it is ideal, so I was sure if it was a 2
minute fix it would have been done a long time ago.
Everyone at some point has their hands tied by legacy implementation
decisions. There is a workaround using a trigger to insert a record
into another table with a unique constraint (suggested by Set) which
would allow this logic to work.
Adam