Re: C Function returning a tuple with a float4 array as column
В списке pgsql-novice по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: C Function returning a tuple with a float4 array as column |
| Дата | |
| Msg-id | 515.1291583008@sss.pgh.pa.us обсуждение |
| Ответ на | Re: C Function returning a tuple with a float4 array as column (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: C Function returning a tuple with a float4 array as
column
|
| Список | pgsql-novice |
I wrote:
> ... But what seems likely to be the problem is that
> you've declared the function to return set (that's implied by the
> RETURNS TABLE syntax) but not coded it to do any such thing. I'm
> guessing some piece of code is confused by the function's failure to
> follow the SRF API.
No, scratch that: the problem is with that syntax, but in the columns
direction not the rows direction. Since you've only got one column,
the TABLE syntax degenerates to one OUT param, which is treated as
though it were just the normal function result. IOW, this function
shouldn't be returning a tuple at all, but just the array datum.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера