When a stored procedure control statement calls a UDF, the SQLSTATE result code value is the same value that the UDF sets, not a value of 'T7505' or 'T7504'.
When a stored procedure control statement calls a UDF, the SQLSTATE result code value is the same value that the UDF sets, not a value of 'T7505' or 'T7504'.