Re: Fwd: [JDBC] Weird issues when reading UDT from stored function
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Fwd: [JDBC] Weird issues when reading UDT from stored function |
| Дата | |
| Msg-id | 24907.1297869823@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Fwd: [JDBC] Weird issues when reading UDT from stored function (Florian Pflug <fgp@phlo.org>) |
| Ответы |
Re: Fwd: [JDBC] Weird issues when reading UDT from stored
function
|
| Список | pgsql-hackers |
Florian Pflug <fgp@phlo.org> writes:
> Hm, I've browsed through the code and it seems that the current behaviour
> was implemented on purpose.
Yes, it's 100% intentional. The idea is to allow function authors to
use OUT-parameter notation (in particular, the convention of assigning
to a named variable to set the result) without forcing them into the
overhead of returning a record when all they want is to return a scalar.
So a single OUT parameter is *supposed* to work just like a function
that does "returns whatever" without any OUT parameters.
Even if you think this was a bad choice, which I don't, it's far too
late to change it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера