Re: SRF problem

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: SRF problem
Дата
Msg-id 200404150830.42427.dev@archonet.com
обсуждение исходный текст
Ответ на SRF problem  (Együd Csaba <csegyud@vnet.hu>)
Ответы Re: SRF problem  (Együd Csaba <csegyud@vnet.hu>)
Список pgsql-general
On Thursday 15 April 2004 07:51, Együd Csaba wrote:
> Hi All,
> I'd like to write an SRF but I'm block a strange error message
>
> WARNING:  plpgsql: ERROR during compile of check_close2 near line 11
> ERROR:  return type mismatch in function returning tuple at or near ";"

> create or replace function check_close2() returns CHECK_CLOSE AS '

This should be SET OF CHECK_CLOSE, remember you're calling the function like:
  SELECT * FROM check_close2()
rather than:
  SELECT check_close2()

So the return-type needs to be "set of" even if only returning one value.
--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Együd Csaba
Дата:
Сообщение: SRF problem
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: SRF problem