Subject | Re: UDFs accepting multiple parameter types |
---|---|
Author | tonypaulday |
Post date | 2004-07-21T13:10:48Z |
Doh! Sorry you had already answered this.
Thanks again,
Tony
--- In firebird-support@yahoogroups.com, "tonypaulday"
<tonypaulday@y...> wrote:
Thanks again,
Tony
--- In firebird-support@yahoogroups.com, "tonypaulday"
<tonypaulday@y...> wrote:
> Ah that makes sense, though what will happen if the return type is oftype,
> 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.
>
> Tony
>
> ....
> > Yes and no.
> > Result type of UDF is always determined by its declaration.
> > Otoh, input parameters passed by descriptor can be called with any
> > 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