| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: OO and relation "impedance mismatch"
Tony Andrews wrote:
> Kenneth Downs wrote:
>> -- This is an RI error trap. Note that it is set-oriented, >> -- and keeps going afterward, even if every row failed. >> -- This trigger also assumes the use of my standard surrogate >> -- key column "skey". >> insert into zuuxtrxerr
> (skeytrx,errnum,errop,tabname,errpkey,errdsc)
>> select @trxNum,13100,@errOp,@errTab,'NO PKEY', >> 'Department Code is not valid' >> FROM inserted i >> WHERE i.custcode NOT IN ( >> SELECT i.custcode FROM inserted i JOIN acrmcust t >> ON i.custcode = t.custcode)
You always want to err on the side of correct data, which leads to dirty reads, which leads to the possibility that you will have spurious failures.
I don't like that anymore than you do, but at the moment my feeling is that it is superior to the collection of problems you get with fail-on-first.
-- Kenneth Downs Use first initial plus last name at last name plus literal "fam.net" to email meReceived on Tue Oct 05 2004 - 12:03:35 CDT
![]() |
![]() |