Re: [HACKERS] Re: Number of parameters in a sql function
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Re: Number of parameters in a sql function |
| Дата | |
| Msg-id | 2462.926271605@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] Re: Number of parameters in a sql function (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Список | pgsql-hackers |
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> Looks like this was fixed, because we now generate an error:
> test=> create function klasd (int, int, int, int, int, int, int, int,
> int) returns int as 'asdf' language 'c';
> ERROR: Procedures cannot take more than 8 arguments
I'm not sure if this is a sufficient defense or not --- IIRC, there were
places in the parser that stuffed info into size-8 arrays without any
nearby check that no more than 8 items would be forthcoming. Offhand
the obvious try doesn't crash it:
regression=> select foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18);
ERROR: No such function 'foo' with the specified attributes
but I am hoping to go back and look more carefully.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера