pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benno Pütz <puetz@mpipsykl.mpg.de>
To: pgsql-interfaces@postgresql.org
Subject: How to detect NULL in VarChar (C function)
Date: Thu, 13 Jan 2005 17:53:40 +0100
Message-ID: <41E6A794.6020701@mpipsykl.mpg.de> (raw)

I try to write a function that combines two varchar columns.

Now the problem arose that (either) one of te columns may contain a NULL 
value, in which case the return value seems to become NULL.

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.

Any help will be appreciated

    Benno




view thread (3+ messages)  latest in thread

Message-ID: <41E6A794.6020701@mpipsykl.mpg.de>
Permalink:  ../41E6A794.6020701@mpipsykl.mpg.de/
Also on:    postgresql.org/message-id/41E6A794.6020701@mpipsykl.mpg.de

 · 

reply

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: puetz@mpipsykl.mpg.de
  Subject: Re: How to detect NULL in VarChar (C function)
  In-Reply-To: <41E6A794.6020701@mpipsykl.mpg.de>

* 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