-057 THE RETURN STATEMENT IN AN SQL FUNCTION MUST RETURN A VALUE.
Explanation
A RETURN statement is specified without a value in an SQL function. The return value must be specified.
System action
The statement cannot be processed.
User response
Add a return value to the statement, and retry your request.
SQLSTATE
42631