how to tackle Arithmetic overflow in db2 functions -
when run user defined function db2 returns following error
sql0802n arithmetic overflow or other arithmetic exception occurred. sqlstate=22003
without giving me indication function source of error. setting on db2 can have stack trace or better information. looking @ message don't know start investigating.
look @ return type of udf. if it's decimal(5,2)
, function trying return bigger that, give error. function do?
you might try looking in db2dump directory (~sqllib/db2dump) error logs. not sure if error gets logged though.
Comments
Post a Comment