Re: Need help with INOUT mis-understanding

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help with INOUT mis-understanding
Date: 2005-10-26 15:15:39
Message-ID: 6343.1130339739@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com> writes:
> I have noticed this as well, if I declare OUT params I can modify them
> to my hearts content before they go out,
> however if you declare it as a INOUT you can't modify it because it is
> declared as a constant.

Uh, I don't think so.

/* input argument vars are forced to be CONSTANT */
if (argmode == PROARGMODE_IN)
((PLpgSQL_var *) argvariable)->isconst = true;

Can you provide a test case that misbehaves that way?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Troy 2005-10-26 15:21:25 Re: Need help with INOUT mis-understanding
Previous Message Andrus 2005-10-26 15:09:58 Re: FoxPro in WINE to Postgresql on LINUX?