Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1B9B19F950E for ; Mon, 3 Sep 2007 08:10:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 27917-07 for ; Mon, 3 Sep 2007 08:09:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gauss.credativ.com (gauss.credativ.com [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id 369C69F94A4 for ; Mon, 3 Sep 2007 08:10:01 -0300 (ADT) Received: from feivel (exit.credativ.com [87.139.82.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 9A32F7886A; Mon, 3 Sep 2007 13:02:27 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id 8F36CD6C7A; Mon, 3 Sep 2007 13:09:56 +0200 (CEST) Date: Mon, 3 Sep 2007 13:09:56 +0200 From: Michael Meskes To: =?utf-8?B?UmVuw6kgR3LDvG4=?= Cc: pgsql-interfaces@postgresql.org Subject: Re: NAN-Values in ECPG-Code Message-ID: <20070903110956.GB28752@feivel.credativ.de> Mail-Followup-To: =?utf-8?B?UmVuw6kgR3LDvG4=?= , pgsql-interfaces@postgresql.org References: <8897A07B0EAA3B45B7119D1937389FFE7C78F6@exchange.mbs.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8897A07B0EAA3B45B7119D1937389FFE7C78F6@exchange.mbs.internal> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/1 X-Sequence-Number: 6623 On Fri, Jun 15, 2007 at 03:38:03PM +0200, René Grün wrote: > I have a Question: Sorry for the late answer, but I still have a backlog in my emails. > EXEC SQL BEGIN DECLARE SECTION; > Int paramid; > Float fval; > EXEC SQL END DECLARE SECTION; > > paramid = 5; > fval = 'NAN'; How about this? fval = strtod("nan", NULL); > Mit freundlichen Grüßen aus Krefeld, > With best regards from Krefeld, Being very close in Moenchengladbach I hope this helps. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!