Re: How to detect NULL in VarChar (C function)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: puetz(at)mpipsykl(dot)mpg(dot)de
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: How to detect NULL in VarChar (C function)
Date: 2005-01-13 19:49:56
Message-ID: 12839.1105645796@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

=?ISO-8859-1?Q?Benno_P=FCtz?= <puetz(at)mpipsykl(dot)mpg(dot)de> writes:
> I have not been able to find a description of how to detect NULL values
> in VarChar variables passed to C-functions to catch those cases.

Use PG_ARGISNULL(). See
33.7.4. Calling Conventions Version 1 for C-Language Functions
at
http://www.postgresql.org/docs/7.4/static/xfunc-c.html

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Fuhr 2005-01-13 19:50:31 Re: How to detect NULL in VarChar (C function)
Previous Message Benno Pütz 2005-01-13 16:53:40 How to detect NULL in VarChar (C function)