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 AAB9CD1B174 for ; Fri, 16 Jul 2004 13:26:19 -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 20101-04 for ; Fri, 16 Jul 2004 16:26:11 +0000 (GMT) Received: from ns1.syntegra.com (ns1.syntegra.com [150.143.16.2]) by svr1.postgresql.org (Postfix) with ESMTP id 13E4FD1B170 for ; Fri, 16 Jul 2004 13:26:09 -0300 (ADT) Received: from [129.179.161.11] by ns1.syntegra.com with ESMTP for pgsql-interfaces@postgresql.org; Fri, 16 Jul 2004 16:26:05 Z Received: from jarjar.arh.us.syntegra.com (jarjar.arh.us.syntegra.com [129.179.16.105]) by ah-intrastore-01.us.syntegra.com with ESMTP; Fri, 16 Jul 2004 11:26:04 -0500 Received: from [129.179.16.111] ([129.179.16.111] [129.179.16.111]) by jarjar.arh.cdc.com with ESMTP; Fri, 16 Jul 2004 11:23:29 -0500 X-Mailer: Claris Emailer 2.0v3 , January 8, 1998 Date: Fri, 16 Jul 2004 11:25:59 -0500 Subject: Re: NULLs in ecpg From: To: Edmund Bacon Cc: Message-Id: In-Reply-To: <40F7FE1A.8010001@onesystem.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200407/28 X-Sequence-Number: 5034 On 7/16/04 11:11 AM, "Edmund Bacon" wrote: > Indicators works as expected. e.g.: > > EXEC SQL INSERT INTO sometable > VALUES (:v1 :v1_ind, 'foo', :v2 :v2_ind); Hmm. I tried that. Just tried it again and it worked. Must have had a typo before. Sorry. What about if I have something like: ... VALUES (TO_TIMESTAMP(:expirationDate, 'YYYYMMDDHH24MISS'), 'foo', :v2) How can I insert NULLS for expirationDate when there's a function in the way? Using ... VALUES (TO_TIMESTAMP(:expirationDate, 'YYYYMMDDHH24MISS') :ind1, ... won't work. Wes