From: Tom Lane <tgl@sss.pgh.pa.us>
To: puetz@mpipsykl.mpg.de
Cc: pgsql-interfaces@postgresql.org
Subject: Re: How to detect NULL in VarChar (C function)
Date: Thu, 13 Jan 2005 14:49:56 -0500
Message-ID: <12839.1105645796@sss.pgh.pa.us> (raw)
In-Reply-To: <41E6A794.6020701@mpipsykl.mpg.de>
References: <41E6A794.6020701@mpipsykl.mpg.de>
=?ISO-8859-1?Q?Benno_P=FCtz?= <puetz@mpipsykl.mpg.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, puetz@mpipsykl.mpg.de
Subject: Re: How to detect NULL in VarChar (C function)
In-Reply-To: <12839.1105645796@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox