Start of change

-578   THE RETURN STATEMENT WAS NOT EXECUTED FOR SQL FUNCTION function-name.

Explanation

The SQL function reached the end of the routine body without executing a RETURN statement.

function-name
The name of the function.

System action

The statement cannot be processed.

User response

Add a RETURN statement to the function routine body, and try the request again.

SQLSTATE

2F005

End of change