X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1255FD1B23C for ; Fri, 16 Jul 2004 13:11:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14101-04 for ; Fri, 16 Jul 2004 16:11:09 +0000 (GMT) Received: from happy.onesystem.ca (happy.onesystem.ca [205.206.61.17]) by svr1.postgresql.org (Postfix) with ESMTP id 8F3C1D1B18C for ; Fri, 16 Jul 2004 13:11:07 -0300 (ADT) Received: from elb_lx.onesystem.ca ([10.1.1.50]) by happy.onesystem.ca with asmtp (Exim 4.14) id 1BlVIg-0006QJ-KA; Fri, 16 Jul 2004 10:11:06 -0600 Message-ID: <40F7FE1A.8010001@onesystem.com> Date: Fri, 16 Jul 2004 10:11:06 -0600 From: Edmund Bacon User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: wespvp@syntegra.com Cc: pgsql-interfaces@postgresql.org Subject: Re: NULLs in ecpg References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/27 X-Sequence-Number: 5033 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