Subject | Re: [ib-support] Unique key that accepts null |
---|---|
Author | Helen Borrie |
Post date | 2001-08-10T11:03:12Z |
At 06:53 PM 10-08-01 +0800, you wrote:
So I'd have a flag on the record that the system could respond to by sending a message warning the user to check that it is the right item and, if necessary, do a manual lookup, offer all duplicates for selection or whatever.
That's all. It's not an InterBase issue but a matter of the pragmatics of development. <g>
regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Thanks Helen,Because, in practice, if you have two items having the same barcode, there is a 50% or better chance that a price lookup will return the price for the wrong item. You can't trust external systems!
>
> >Yes; and sometimes barcodes get duplicated (by the manufacturers, in
>error) so a UNIQUE constraint can cause problems even where all items have a
>barcode. Generally I would want to log such cases and flag the row for a
>warning.>
>
>Do you mean that you would just leave it there and flag it with some sort of
>error code? Why?
So I'd have a flag on the record that the system could respond to by sending a message warning the user to check that it is the right item and, if necessary, do a manual lookup, offer all duplicates for selection or whatever.
That's all. It's not an InterBase issue but a matter of the pragmatics of development. <g>
regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________