pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edmund Bacon <ebacon@onesystem.com>
To: wespvp@syntegra.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: NULLs in ecpg
Date: Fri, 16 Jul 2004 10:11:06 -0600
Message-ID: <40F7FE1A.8010001@onesystem.com> (raw)
In-Reply-To: <BD1D6383.F3B0%wespvp@syntegra.com>
References: <BD1D6383.F3B0%wespvp@syntegra.com>

wespvp@syntegra.com wrote:
> I couldn't find this in the archives...  In an ecpg program, given the
> statement (taken from the manual):
> 
> EXEC SQL INSERT INTO sometable VALUES (:v1, 'foo', :v2);

Indicators works as expected.  e.g.:

EXEC SQL INSERT INTO sometable
          VALUES (:v1 :v1_ind, 'foo', :v2 :v2_ind);

> 
> Is there a way to create the record where ':v1' is NULL - as with indicators
> in a FETCH?  Or, do I have to generate different SQL statements in the C
> program?
> 
> Wes
> 

-- 
Edmund Bacon <ebacon@onesystem.com>



view thread (6+ messages)  latest in thread

Message-ID: <40F7FE1A.8010001@onesystem.com>
Permalink:  ../40F7FE1A.8010001@onesystem.com/
Also on:    postgresql.org/message-id/40F7FE1A.8010001@onesystem.com

 · 

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: ebacon@onesystem.com, wespvp@syntegra.com
  Subject: Re: NULLs in ecpg
  In-Reply-To: <40F7FE1A.8010001@onesystem.com>

* 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