0

When I run a user defined function db2 returns the following error

  SQL0802N  Arithmetic overflow or other arithmetic exception occurred.  
  SQLSTATE=22003

without giving me any indication about which function is the source of that error. Is that any setting on db2 so that I can have something like a stack trace or better information. By just looking at that message I don't know where to start investigating.

4

1 回答 1

1

查看 UDF 的返回类型。如果它类似于Decimal(5,2),但函数试图返回比这更大的东西,它会给出这个错误。这个函数有什么作用?

您可以尝试在 db2dump 目录 (~sqllib/db2dump) 中查找错误日志。不确定这是否是一个被记录的错误。

于 2013-08-07T17:18:10.227 回答