Subject | Re: [ib-support] Creating exceptions to handle CHECK constraints |
---|---|
Author | Helen Borrie |
Post date | 2003-04-20T22:57:45Z |
At 08:02 AM 21/04/2003 +0930, you wrote:
"meaningful" message to the client. For example,
create exception balance_negative ' "Amount Remaining" in Table "Feed
Inventory" has become
negative.'
(I haven't done a character count on this but the message string does have
a pretty short limit, I think about 70 characters...an incentive for
writing tight messages :-) ))
Helen
>When a certain table is updated, it triggers a cascade of updates inYou can create exceptions and use these in your triggers to return a
>other tables, many of whose fields might not satisfy their CHECK
>constraints.
>
>How is one to distinguish between these so that the user can be
>presented with meaningful information?
>
>E.g. Field "Amount Remaining" in Table "Feed Inventory" has become
>negative.
"meaningful" message to the client. For example,
create exception balance_negative ' "Amount Remaining" in Table "Feed
Inventory" has become
negative.'
(I haven't done a character count on this but the message string does have
a pretty short limit, I think about 70 characters...an incentive for
writing tight messages :-) ))
Helen