How to detect NULL in VarChar (C function)

From: Benno Pütz <puetz(at)mpipsykl(dot)mpg(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: How to detect NULL in VarChar (C function)
Date: 2005-01-13 16:53:40
Message-ID: 41E6A794.6020701@mpipsykl.mpg.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2005-01-13 19:49:56 Re: How to detect NULL in VarChar (C function)
Previous Message Frost, Mr. Michael (contractor) 2005-01-12 16:04:24 ECPG and CURSOR declaration