Re: invalid memory alloc after insert with c trigger function
В списке pgsql-general по дате отправления:
| От | Dudás József |
|---|---|
| Тема | Re: invalid memory alloc after insert with c trigger function |
| Дата | |
| Msg-id | 46605708.5040908@freemail.hu обсуждение |
| Ответ на | Re: invalid memory alloc after insert with c trigger function (Martijn van Oosterhout <kleptog@svana.org>) |
| Список | pgsql-general |
Thanks your replies, these much help me. I am beginer in postgresql c function, sorry when I wrote stupid thinks too. This function not call from sql just from c code. So as I understand not need PG_FUNCTION_INFO_V1 macro. It is need in case I want to call routin direct from sql or make database function. > Are you compiling with warnings? Because this should have blown up on > you: > > On Fri, Jun 01, 2007 at 02:03:26PM +0200, Dudás József wrote: > >> PG_FUNCTION_INFO_V1(_selectFunctionB); >> Datum >> _selectFunctionB( char *sql ) >> > > If you've declared your function V1 then it doesn't get passed > parameters like that. The compiler should have flagged this. > > Also, can you show how you defined the function in SQL, does it match? > > Have a nice day, >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера