exception handling - pass error from inner stored procedure db2 -



exception handling - pass error from inner stored procedure db2 -

i new db2 , got stuck in problem shouldn't tricky.

i have procedure try_a calls procedure try_b

in both procedures have declared exit handler sql exception. suppose in try_b split 0 error encountered returned using signal.

when try_a (exit handler written)calls try_b on case of split 0 error in try_b ,sql exception of inner block not shown.

can please help how can achieved.

i don't have sample code now. seek set tomorrow.

when utilize signal in inner stored procedure, status raised user-defined type, not original status cause inner status handler invoked. has own sqlcode, sqlstate, , message. utilize resignal statement raise same condition.

alternatively, log error messages temporary table or file in each status handler.

stored-procedures exception-handling db2 procedure procedural-programming

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -