Re: Plpgsql problem passing ROWTYPE to function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Plpgsql problem passing ROWTYPE to function
Дата
Msg-id 19933.1083295266@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Plpgsql problem passing ROWTYPE to function  ("Karl O. Pinc" <kop@meme.com>)
Ответы Re: Plpgsql problem passing ROWTYPE to function  ("Karl O. Pinc" <kop@meme.com>)
Список pgsql-general
"Karl O. Pinc" <kop@meme.com> writes:
> What a drag.  The documentation says it supports this.

No it doesn't ...

>   "Parameters to a function can be composite types (complete table
> rows). In that case, the corresponding identifier $n will be a row
> variable, and fields can be selected from it, for example $1.user_id."

That says that a parameter passed *into* a plpgsql function can be a
rowtype, not that plpgsql supports doing something with the whole-row
variable in function calls it makes.

I agree it's a drag :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgresql idle
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgresql idle