Database Error Messages

PLS-00508

The expression in a RETURN statement cannot be a type

Action

Replace the datatype specifier in the RETURN statement with an appropriate expression.