Errors returned by extended scalar functions
All errors that are detected by extended scalar functions return SQLSTATE 38552 when you are connected to a Db2 for Linux®, UNIX, and Windows server.
The text portion of the message is of the form SYSFUN:nn where nn is
one of the following reason codes:
- 01
- Numeric value out of range
- 02
- Division by zero
- 03
- Arithmetic overflow or underflow
- 04
- Invalid date format
- 05
- Invalid time format
- 06
- Invalid timestamp format
- 07
- Invalid character representation of a timestamp duration
- 08
- Invalid interval type (must be one of 1, 2, 4, 8, 16, 32, 64, 128, 256)
- 09
- String too long
- 10
- Length or position in string function out of range
- 11
- Invalid character representation of a floating point number