Deterministic functions
The optional DETERMINISTIC
clause indicates that the function is deterministic.Deterministic functions always return the same result for the same set of inputs.Non-deterministic functions can return different results for each invocation, even for the same set of inputs.If a function is specified as deterministic, then such a function might not be called again if it has already been called once with the given set of inputs, and instead takes the result from a metadata cache.
Note
|
Current versions of Firebird do not cache results of deterministic functions. Specifying the This is easily demonstrated with an example:
|