Home > Archive > PostgreSQL Bugs > December 2005 > Re: BUG #2107: Function INOUT parameter not returned to caller,









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: BUG #2107: Function INOUT parameter not returned to caller,
Stallone

2005-12-13, 8:25 pm

Tom Lane wrote:
> "Tony S" <tony@vectorsalad.com> writes:
>
>
>
> 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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com