Re: function returning a setof a column type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function returning a setof a column type
Дата
Msg-id 5590.1138733590@sss.pgh.pa.us
обсуждение исходный текст
Ответ на function returning a setof a column type  (Murat Tasan <murat.tasan@cwru.edu>)
Список pgsql-novice
Murat Tasan <murat.tasan@cwru.edu> writes:
> => CREATE FUNCTION test_function() RETURNS SETOF table.column%TYPE AS
> $$ SELECT 1; $$ LANGUAGE SQL;
> ERROR:  syntax error at or near "%" at character 59

This seems to be an oversight in the grammar: that combination simply
isn't handled.  I'll see about fixing it for 8.2, but for the moment
you're just stuck with not using %TYPE and SETOF together :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re:
Следующее
От: Darren R
Дата:
Сообщение: subscribe-digest