| От | Tom Lane |
|---|---|
| Тема | Re: Arguments not being passed to a function |
| Дата | |
| Msg-id | 3049.959527095@sss.pgh.pa.us обсуждение |
| Ответ на | Arguments not being passed to a function (Barry Lind <barry@xythos.com>) |
| Список | pgsql-general |
Barry Lind <barry@xythos.com> writes:
> I am trying to call PL/pgSQL functions from JDBC via the Fastpath
> interface. The function is executing but none of the arguments to the
> function are getting set.
Looks like fastpath.c is passing a garbage isNull flag to the function
it calls :-(. None of the functions "usually" called this way pay
attention to isNull, but plpgsql functions sure do.
Turns out I had already fixed this for 7.1 as a side-effect of some
other work, but I will stick a patch into 7.0.1. If you're in a hurry,
the bug is in src/backend/tcop/fastpath.c, and the appropriate patch is
#ifndef NO_FASTPATH
+ isNull = false;
retval = fmgr_array_args(fid, nargs, arg, &isNull);
#else
retval = NULL;
#endif /* NO_FASTPATH */
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера