Skip to content

Non-critical UDF errors should be consistent [CORE2003] #2440

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Claudio Valderrama C. (robocop)

It would be better if the logical, non-critical UDF errors are handled with a common, primary code. Example:

UDF error... deallocation error
UDF error... conversion error
UDF error... unknown data type (data type not supported).

Also, it's not clear why "data type is not supported" is treated as critical with IBERROR(169). This means currently a bugcheck, but if the UDF produced an unknown data type, it didn't damage the server neither the database. A bugcheck prevents the subsequent operation of the db, whereas a normal error allows to continue working with the db despite a logical mistake in the UDF.