Re: Have you received this? Fwd: Lots of nan's

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lynn(dot)Tilby(at)asu(dot)edu
Cc: pgsql-novice(at)postgresql(dot)org, ltilby(at)asu(dot)edu
Subject: Re: Have you received this? Fwd: Lots of nan's
Date: 2004-02-01 19:18:59
Message-ID: 926.1075663139@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Lynn(dot)Tilby(at)asu(dot)edu writes:
> fprintf(DBG_OUT,"sqlcode = %f\n", sqlca.sqlcode); \

%f would be appropriate for printing a float or double value. But
sqlcode is integral (long to be specific). You probably want %ld here.
The other uses of %f are wrong too.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message joseph speigle 2004-02-01 21:07:07 Re: simple update closes connection. why?
Previous Message cys01 2004-02-01 18:46:46 WAL