Re: Postgresql c function returning one row with 2 fileds

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Postgresql c function returning one row with 2 fileds
Дата
Msg-id CA+Tgmob-oFgDyzRLJf+mfeBk68gyufDeY6LKFNjPxRe51C5esA@mail.gmail.com
обсуждение исходный текст
Ответ на Postgresql c function returning one row with 2 fileds  (lucamarletta <info@beopen.it>)
Список pgsql-hackers
On Sat, Nov 9, 2013 at 5:52 AM, lucamarletta <info@beopen.it> wrote:
> I'm new in postgresql c function and I start following examples.
>
> I want to write a simple function that have inside an SQL and passing
> parameter evaluete anbd return 2 fields as sum (for now to be simpler).
>
> The function below has problem passing the check
>
> (get_call_result_type(fcinfo, &resultTypeId, &resultTupleDesc) !=
> TYPEFUNC_COMPOSITE)

This is checking whether the CREATE FUNCTION statement that you use to
invoke this code is set up to return a composite type; it's
essentially cross-checking your C with your SQL.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Add CREATE support to event triggers
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Row-security writer-side checks proposal