On Fri, Dec 10, 2010 at 2:44 PM, Pavel Stehule wrote:
> 2010/12/10 Tom Lane :
>> Pavel Stehule writes:
>>> 2010/12/9 Tom Lane :
What exactly is the use-case for that?
>>
>>> I am working on function that can help with record updating. It's
>>> based on polymorphic types. I would to allow a m
2010/12/10 Tom Lane :
> Pavel Stehule writes:
>> 2010/12/9 Tom Lane :
>>> What exactly is the use-case for that?
>
>> I am working on function that can help with record updating. It's
>> based on polymorphic types. I would to allow a multiple modification
>> per one call - like UPDATE statement do
Pavel Stehule writes:
> 2010/12/9 Tom Lane :
>> What exactly is the use-case for that?
> I am working on function that can help with record updating. It's
> based on polymorphic types. I would to allow a multiple modification
> per one call - like UPDATE statement does.
> some like:
> record_set_
2010/12/9 Tom Lane :
> Pavel Stehule writes:
>> I didn't explain it well, sorry
>
>> so I have a function foo(variadic "any")
>
>> usual calling like foo(10,20) or foo('a',10) working perfectly. But I
>> have a problem with call with VARIADIC keyword
>
>> like foo(VARIADIC ARRAY[10,20]) or foo(VAR
Pavel Stehule writes:
> I didn't explain it well, sorry
> so I have a function foo(variadic "any")
> usual calling like foo(10,20) or foo('a',10) working perfectly. But I
> have a problem with call with VARIADIC keyword
> like foo(VARIADIC ARRAY[10,20]) or foo(VARIADIC ARRAY['a','10']).
> Keyw
2010/12/9 Tom Lane :
> Pavel Stehule writes:
>> There is missing expansion for variadic parameter from any array to
>> real parameters when variadic type is "any".
>
> That's not a bug, it's intentional. Variadic any is intended to let the
> C function accept any old parameter list. We should no
Pavel Stehule writes:
> There is missing expansion for variadic parameter from any array to
> real parameters when variadic type is "any".
That's not a bug, it's intentional. Variadic any is intended to let the
C function accept any old parameter list. We should not assume that we
should do som
Hello
There is missing expansion for variadic parameter from any array to
real parameters when variadic type is "any".
It can be solved on C level, but in this moment we have not a access
to parser, so we don't know, if variadic flag was used or not.
Regards
Pavel Stehule
--
Sent via pgsql-bu