Re: Need help with INOUT mis-understanding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need help with INOUT mis-understanding
Дата
Msg-id 6343.1130339739@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Need help with INOUT mis-understanding  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Ответы Re: Need help with INOUT mis-understanding  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Список pgsql-general
Tony Caduto <tony_caduto@amsoftwaredesign.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: FoxPro in WINE to Postgresql on LINUX?
Следующее
От: "Andrus"
Дата:
Сообщение: Why database is corrupted after re-booting