× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



<snip>
When it comes to feedback from a business logic trigger to say, JDBC,
how will the ILE public data structure export help?
--buck
</snip>

Good point.

When you use a constraint, and you give it a decent name (unlike the
default I used below) and you get a constraint error you will get a
message like this in iNav's Run SQL scripts

INSERT INTO rob.nathan (mydata) VALUES('A')

SQL State: 23513
Vendor Code: -545
Message: [SQL0545] INSERT, UPDATE, or MERGE not allowed by CHECK
constraint. Cause . . . . . : The value being inserted or updated does
not meet the criteria of CHECK constraint Q_ROB_NATHAN_MYDATA_00001. The
operation is not allowed. Recovery . . . : Change the values being
inserted or updated so that the CHECK constraint is met. Otherwise, drop
the CHECK constraint Q_ROB_NATHAN_MYDATA_00001.

Now, that constraint name could have been given a name like
ValidTypesAre... or some such thing. And you could base your error
handling on this return data. Like, highlight the type.

The big difference here is that each constraint has it's own name. A
trigger could handle multiple things. So even if you could name your
trigger, and DB2 echoed it back, it might not be enough to do squat.
Especially if you were using some generic trigger mediator.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.