Subject Re: UDFs accepting multiple parameter types
Author tonypaulday
Ah that makes sense, though what will happen if the return type is of
a different type than what you actually return?

However even if it's going to be a strict return type the technique
will still probably be usefull to me so thanks.


> Yes and no.
> Result type of UDF is always determined by its declaration.
> Otoh, input parameters passed by descriptor can be called with any type,
> regardless of declaration (e.g. even if parameter is declared as
"int by descriptor",
> you can pass string, and UDF will know that the parameter is string).
> Ivan