-453   THERE IS A PROBLEM WITH THE RETURNS CLAUSE IN THE CREATE FUNCTION STATEMENT FOR function-name

Explanation

A problem casting the result of user-defined function function-name has been identified. The CAST FROM data type is not castable to the RETURNS data type, and it must be. See the SQL Reference for details on casting between data types.

System action

The statement cannot be processed.

Programmer response

Change the RETURNS or CAST FROM clause so that the CAST FROM data type is castable to the RETURNS data type.

SQLSTATE

42880