Re: Referring to function parameter in function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Referring to function parameter in function
Дата
Msg-id 28853.1284765293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Referring to function parameter in function  (Thom Brown <thom@linux.com>)
Ответы Re: Referring to function parameter in function
Список pgsql-general
Thom Brown <thom@linux.com> writes:
> ERROR:  invalid input syntax for integer: "bitlength"
> LINE 1: SELECT GET_BIT(from_value::bit(bitlength), tap.value-1)
>                                    ^

> I want to use the parameter called "bitlength" as the length of a bit
> when casting a value.

Hm, you can't ... that's not a valid place for a parameter.  You'd have
to EXECUTE a built-up string.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Referring to function parameter in function
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Referring to function parameter in function