Re: C function question

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: C function question
Дата
Msg-id 20090203205317.GC14767@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: C function question  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Ответы Re: C function question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Grzegorz Jaśkiewicz wrote:
> >  char  c = PG_GETARG_CHAR(1);
>
> 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.

--
Alvaro Herrera       Valdivia, Chile   ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"The problem with the facetime model is not just that it's demoralizing, but
that the people pretending to work interrupt the ones actually working."
                                                           (Paul Graham)

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: C function question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: C function question