Re: PROBLEM WITH FUNCTION

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PROBLEM WITH FUNCTION
Дата
Msg-id 4040.1083554293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PROBLEM WITH FUNCTION  ("Mario Alberto Soto Cordones" <mario_soto@venezolanadeavaluos.com>)
Список pgsql-admin
"Mario Alberto Soto Cordones" <mario_soto@venezolanadeavaluos.com> writes:
> CREATE OR REPLACE FUNCTION "public"."contador_distrito_activos" (numeric,
> numeric, numeric) RETURNS SETOF "public"."ty_activo" AS'
> declare
>   con bigint;
>   act bigint;
> ...
> return con , act;

plpgsql has no shorthand for constructing a rowtype result, as you seem
to be expecting here.  Declare a variable of type ty_activo, fill it in,
and return it.

            regards, tom lane

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

Предыдущее
От: "Mario Alberto Soto Cordones"
Дата:
Сообщение: PROBLEM WITH FUNCTION
Следующее
От: Vikram Kulkarni
Дата:
Сообщение: Regression tests: test stats loops indefinately...