Re: Recursive pl/pgsql function ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Recursive pl/pgsql function ...
Дата
Msg-id 7543.1160969254@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Recursive pl/pgsql function ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Ответы Re: Recursive pl/pgsql function ...
Re: Recursive pl/pgsql function ...
Список pgsql-sql
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> More then one Record:
> # select get_next_billing_date(activated, 12) from company_details;
> ERROR:  control reached end of function without RETURN
> CONTEXT:  PL/pgSQL function "get_next_billing_date"

Hm, what PG version is this?  I couldn't duplicate that in HEAD, though
I did find out that a zero or negative payment_period makes it recurse
until "stack depth exceeded".
        regards, tom lane


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