| От | Greg Stark |
|---|---|
| Тема | quirk of array type processing |
| Дата | |
| Msg-id | 87fzj41nyq.fsf@stark.dyndns.tv обсуждение |
| Ответы |
Re: quirk of array type processing
|
| Список | pgsql-hackers |
I'm not sure if this should be considered a bug or not. At least in my case it doesn't cause a problem. I think it could always be worked around with explicit casts in any case, it just seems... wrong: db=> create or replace function array_length(integer[]) returns integer as 'SELECT array_upper($1)-array_lower($1)+1' language sql strict immutable; ERROR: function array_upper(integer[]) does not exist HINT: No function matches the given name and argument types. You may need to add explicit typecasts. db=> create or replace function array_length(anyarray) returns integer as 'SELECT array_upper($1)-array_lower($1)+1' language sql strict immutable; CREATE FUNCTION -- greg
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера