Re: Unknown kind of return type specified for function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unknown kind of return type specified for function
Дата
Msg-id 10908.1055653544@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Unknown kind of return type specified for function  (Avi Schwartz <avi@CFFtechnologies.com>)
Ответы Re: Unknown kind of return type specified for function  (Avi Schwartz <avi@CFFtechnologies.com>)
Список pgsql-general
Avi Schwartz <avi@CFFtechnologies.com> writes:
> How do I declare the fact that the function will return nothing?

"returns void" works fine for me.

regression=# create or replace function splite_delete_configured_selection(int,
regression(# int, int, int)
regression-# returns void
regression-# as '
regression'# begin
regression'# return;
regression'# end;
regression'# ' language 'plpgsql';
CREATE FUNCTION
regression=# select splite_delete_configured_selection(1,2,3,4);
 splite_delete_configured_selection
------------------------------------

(1 row)


            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: crypt vs password in pg_hba.conf
Следующее
От: Avi Schwartz
Дата:
Сообщение: Re: Unknown kind of return type specified for function