Antw: plpgsql function gets wierd with Null parameters

Поиск
Список
Период
Сортировка
От Gerhard Dieringer
Тема Antw: plpgsql function gets wierd with Null parameters
Дата
Msg-id s960603b.071@kopo001
обсуждение исходный текст
Ответы Re: Antw: plpgsql function gets wierd with Null parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Skeets Norquist wrote:

> When I call the following plpgsql function with the last two parameters
> as Null, the first parameter loses it's value:
>   ma=> select createFund('fred', null, null);
> ...    
> However it works fine when I give values to the last two params:
>   ma=> select createFund('fred', 'joe', 5);
> ...

It's a known bug of plpgsql that if one arg is NULL, all other args are also assumed to be NULL. 
I think (hope) this will be fixed in a future version.

Gerhard




В списке pgsql-sql по дате отправления:

Предыдущее
От: Ang Chin Han
Дата:
Сообщение: Re: Hash Join not using hashed index?
Следующее
От: Grant Finnemore
Дата:
Сообщение: Re: trigger or something else?