Re: Help with plperl

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Help with plperl
Дата
Msg-id 20050821222352.GA31904@winnie.fuhr.org
обсуждение исходный текст
Ответ на Help with plperl  (Alex <alex@meerkatsoft.com>)
Список pgsql-general
On Mon, Aug 22, 2005 at 03:58:25AM +1000, Alex wrote:
> could anyone help me with a problem I am having creating a plperl function.
>
> The return always complains with the following error:
> composite-returning Perl function must return reference to hash

The above error tells you what's wrong: PL/Perl expects you to
return a hash reference because the return type is "sometype"; the
code returns an array reference so you get an error.  Since you're
pushing hash references onto the array, I'm guessing you meant to
return "SETOF sometype".

--
Michael Fuhr

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

Предыдущее
От: Alex
Дата:
Сообщение: Help with plperl
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Help with plperl