Calling overloaded function with NULL argument

Поиск
Список
Период
Сортировка
От Patryk Kordylewski
Тема Calling overloaded function with NULL argument
Дата
Msg-id 49908EE4.5050601@fooby.de
обсуждение исходный текст
Ответы Re: Calling overloaded function with NULL argument  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,

i've found a strange behaviour when you have overloaded functions with
the same name and different argument types and try to call them with NULL.
The stored procedures with "text" and "text[]" argument type gets called
- the variants with "integer" / "integer[]" produce the, i think
expected, behaviour and raise an exception "ERROR:  FUNCTION
foo(unknown) IS NOT UNIQUE".

Is there an explanation or is this a bug?

I've tested this on PG 8.3.1 and 8.2.4, see
http://pgsql.privatepaste.com/2bCQg0FEPX

Best regards,
Patryk Kordylewski

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

Предыдущее
От: "Matt Magoffin"
Дата:
Сообщение: Re: Out of memory on SELECT in 8.3.5
Следующее
От: "Matt Magoffin"
Дата:
Сообщение: Re: Out of memory on SELECT in 8.3.5