Migration 7.3 to 7.4 Numeric values using PQ_ interface

Started by Paul Billingtonover 22 years ago2 messagesbugs
Jump to latest
#1Paul Billington
paulfwb@yahoo.com

Hi,
I have been using the C libraries with version
7.33 to retrieve data with success. Now I have
migrated to 7.4., although using the psql client all
looks fine my integer values returned through the
programmatic interface are wild, e.g. should be 101
and is 7236487.

Char and varchar are fine. Has something changed
radically in this release that could cause a binary
incompatibility?
Any suggestions?

Thanks,
Paul

________________________________________________________________________
Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Paul Billington (#1)
Re: Migration 7.3 to 7.4 Numeric values using PQ_ interface

=?iso-8859-1?q?Paul=20Billington?= <paulfwb@yahoo.com> writes:

I have been using the C libraries with version
7.33 to retrieve data with success. Now I have
migrated to 7.4., although using the psql client all
looks fine my integer values returned through the
programmatic interface are wild, e.g. should be 101
and is 7236487.

Hmm, are you using binary cursors? We changed the on-the-wire format
for binary data to be more portable ...

regards, tom lane