Re: FORMAT_INTEGER is wrong on (some) 64 bit platforms?

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: Matt Lilley <matt(dot)lilley(at)securitease(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: FORMAT_INTEGER is wrong on (some) 64 bit platforms?
Date: 2013-07-24 14:57:42
Message-ID: 51EFEB66.8000603@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

(2013/07/24 23:37), Matt Lilley wrote:
>
> On 24/07/13 3:22 PM, Inoue, Hiroshi wrote:
>> Hi Matt,
>>
>> (2013/07/24 3:32), Matt Lilley wrote:
>>> Hello,
>>>
>>> I'm trying to understand the logic in psqlodbc.h where if the size of a
>>> long int is not 8 that FORMAT_INTEGER is set to "%ld".
>>
>> Is the version 9.02.0100?
> Yes. Tip of master.
>> Does replacing SIZEOF_LONG_INT by SIZEOF_LONG work?
> Yes. Then I get the first branch, which has "%d" and "%u".

Hmm 9.02.0100 seems to have introduced the bug.
What configure is checking is SIZEOF_LONG not SIZEOF_LONG_INT.

regards,
Hiroshi Inoue

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Robert Haas 2013-07-25 23:24:53 Re: getting rid of SnapshotNow
Previous Message Matt Lilley 2013-07-24 14:37:26 Re: FORMAT_INTEGER is wrong on (some) 64 bit platforms?