Re: C function question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>, General Postgres Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: C function question
Date: 2009-02-03 21:03:41
Message-ID: 15007.1233695021@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> Grzegorz Jakiewicz 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-02-03 21:05:19 Re: C function question
Previous Message Alvaro Herrera 2009-02-03 20:53:17 Re: C function question