Re: ROWTYPE as parameter to function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ROWTYPE as parameter to function
Дата
Msg-id 4536.1019251683@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ROWTYPE as parameter to function  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Ответы Re: ROWTYPE as parameter to function  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> Obviously I can't use the RECORD type but when I create the function with:
> CREATE FUNCTION myfunction (myview%ROWTYPE) RETURNS ... ;
> the '%' gets reported in an error message.

Leave off the %ROWTYPE.  Also read the info about composite-type
arguments at
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/xfunc-sql.html

            regards, tom lane

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

Предыдущее
От: William Meloney
Дата:
Сообщение: Re: unable to repair table: missing chunk number
Следующее
От: David A Dickson
Дата:
Сообщение: Re: creating table w/ php help