Skip site navigation (1) Skip section navigation (2)

Re: NAN-Values in ECPG-Code

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: René Grün <rgr(at)mbs-software(dot)de>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: NAN-Values in ECPG-Code
Date: 2007-09-03 11:09:56
Message-ID: 20070903110956.GB28752@feivel.credativ.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
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(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: Robert AyrapetyanDate: 2007-09-17 13:23:46
Subject: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW
Previous:From: Hilton PerantunesDate: 2007-08-30 21:42:55
Subject: Re: Problem with character encodings.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group