Re: how to call a stored function from another stored function? even possible?

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: how to call a stored function from another stored function? even possible?
Дата
Msg-id 051AE9CD-1C5C-40C1-A39C-B5285D3905E9@yahoo.com
обсуждение исходный текст
Ответ на how to call a stored function from another stored function? even possible?  (Java Services <jvsrvcs@gmail.com>)
Список pgsql-general

On Oct 11, 2011, at 15:54, Java Services <jvsrvcs@gmail.com> wrote:

> I have a stored functionA that returns void
>
> Inside there I have a line that says:
>    select functionB();
>
> and it gives this error.
>
> ERROR:  query has no destination for result data
> HINT:  If you want to discard the results of a SELECT, use PERFORM instead.
> CONTEXT:  PL/pgSQL function "functionA" line 13 at SQL statement
>
> ********** Error **********
>
>
> any ideas?

If you want to discard the results of a SELECT, use PERFORM instead.

See 39.5.2

David J.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq 8.3 and 8.4 interfaces
Следующее
От: salah jubeh
Дата:
Сообщение: Re: libpq 8.3 and 8.4 interfaces