Re: C function question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C function question
Дата
Msg-id 15007.1233695021@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: C function question  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: C function question  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Список pgsql-general
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Grzegorz Jaśkiewicz wrote:
>> for whatever reason, taht doesn't return the real char that was passed in.

> Yeah ... try DatumGetBpCharP instead.  PG_GETARG_CHAR is for type "char"
> with quotes, which is a completely different thing.

Or maybe the C code does just what he wants, and the problem is that he
needs to declare the function correctly at the SQL level (ie, with
second argument "char" not char(1)).

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: C function question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fastest way to drop an index?