Re: Have you received this? Fwd: Lots of nan's - Mailing list pgsql-novice

From Tom Lane
Subject Re: Have you received this? Fwd: Lots of nan's
Date
Msg-id 926.1075663139@sss.pgh.pa.us
Whole thread Raw
In response to Have you received this? Fwd: Lots of nan's  (Lynn.Tilby@asu.edu)
List pgsql-novice
Lynn.Tilby@asu.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

pgsql-novice by date:

Previous
From: cys01@cashette.com
Date:
Subject: WAL
Next
From: joseph speigle
Date:
Subject: Re: simple update closes connection. why?