Hi,
FYI & comment:
We have triggers that call SPs.
If the Stored Procedure is invalidated, e.g a dependent table is dropped.
The SP is marked as invalid, but no error is thrown by the trigger!!
i.e the trigger performs no action, but because there is no error, this can
easily go unnoticed (as it has been in our scenario)
Is this working as designed? surely you would want the trigger to error?
We have coded around this by checking a return code from the SP for NULL (which
it seems to be when the SP is invalid)
i.e
declare rc_sqlstate char(5) default '00000'
call my_stored_proc(...... OUT rc_sqlstate);
if ((rc_sqlstate <> '00000') or (rc_sqlstate is null))THEN
ERROR ....