| От | Tom Lane |
|---|---|
| Тема | Re: Proposal: OUT parameters for plpgsql |
| Дата | |
| Msg-id | 2726.1111446951@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Proposal: OUT parameters for plpgsql (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: Proposal: OUT parameters for plpgsql
|
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> Do other databases not allow you to specify a return value in addition to the
> OUT and INOUT parameters?
Oracle discourages OUT parameters in a function, so PL/SQL at least
shouldn't be a big source of cases where that's a problem.
> I would have expected the return value to be an extra column added to the
> record.
I'd prefer not to do that, because having a "return type" that's
different from the true return type of the function (ie the RECORD)
is going to cause untold amounts of confusion.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера