Re: can we create a record of more than one field?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: can we create a record of more than one field?
Дата
Msg-id 10906.1225430945@sss.pgh.pa.us
обсуждение исходный текст
Ответ на can we create a record of more than one field?  ("Jaime Casanova" <jcasanov@systemguards.com.ec>)
Список pgsql-hackers
"Jaime Casanova" <jcasanov@systemguards.com.ec> writes:
> in the spanish list someone reports that the following function
> doesn't even compile:

> CREATE FUNCTION select_temporal(OUT valor integer) RETURNS SETOF record AS
> $BODY$
> begin
> return query select 1::integer;
> return;
> end;
> $BODY$
> LANGUAGE 'plpgsql' VOLATILE;

> and this is the error message
> ERROR:  function result type must be integer because of OUT parameters

It's not a record, it's an integer... if you had more than one out
parameter then "record" would be sensible ...
        regards, tom lane


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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: can we create a record of more than one field?
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: array_agg and array_accum (patch)