Re: Running functions that return void in psql

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Running functions that return void in psql
Дата
Msg-id 41BFF938.1000000@samurai.com
обсуждение исходный текст
Ответ на Running functions that return void in psql  (Eric Brown <eric.brown@propel.com>)
Ответы Re: Running functions that return void in psql
Список pgsql-general
Eric Brown wrote:
> I've got quite a few plpgsql functions that insert, update or delete.
> They're all declared to return void. All other functions, I can just run
> 'select f(...);' from psql to test them. I don't understand how to test
> these ones that return void from psql.

neilc=# create function xyz() returns void as 'begin return; end;'
language 'plpgsql';
CREATE FUNCTION
neilc=# select xyz();
  xyz
-----

(1 row)

-Neil

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

Предыдущее
От: Eric Brown
Дата:
Сообщение: Running functions that return void in psql
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Running functions that return void in psql