Re: BUG #2107: Function INOUT parameter not returned to caller,
В списке pgsql-bugs по дате отправления:
| От | Stallone |
|---|---|
| Тема | Re: BUG #2107: Function INOUT parameter not returned to caller, |
| Дата | |
| Msg-id | 439DA064.7080502@pobox.com обсуждение исходный текст |
| Ответ на | Re: BUG #2107: Function INOUT parameter not returned to caller, causes plpgsql malfunctions (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
Tom Lane wrote: > "Tony S" <tony@vectorsalad.com> writes: > >>Function defined with INOUT parameter. Value of parameter is not returned >>to calling function. > > > You are confused about the meaning and use of INOUT. It's not some kind > of pass-by-reference parameter, it's just a shorthand for separate IN > and OUT parameters. In your example, the PERFORM discards the function > result; the original value of 'outparameter' is not and cannot be > modified by the called function. > > regards, tom lane This is very much my mistake. I had indeed taken them to be a sort of pass-by-reference parameter, and not part of the result definition, which they actually are. Running PERFORM is pointless, then, too.
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера