pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Matt Lilley <matt.lilley@securitease.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: FORMAT_INTEGER is wrong on (some) 64 bit platforms?
Date: Wed, 24 Jul 2013 23:57:42 +0900
Message-ID: <51EFEB66.8000603@tpf.co.jp> (raw)
In-Reply-To: <51EFE6A6.8080303@securitease.com>
References: <51EECC51.9040504@securitease.com>
	<51EF486E.7060307@tpf.co.jp>
	<51EFE6A6.8080303@securitease.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (4+ messages)

Message-ID: <51EFEB66.8000603@tpf.co.jp>
Permalink:  ../51EFEB66.8000603@tpf.co.jp/
Also on:    postgresql.org/message-id/51EFEB66.8000603@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, matt.lilley@securitease.com
  Subject: Re: FORMAT_INTEGER is wrong on (some) 64 bit platforms?
  In-Reply-To: <51EFEB66.8000603@tpf.co.jp>
  References: <51EECC51.9040504@securitease.com> <51EF486E.7060307@tpf.co.jp> <51EFE6A6.8080303@securitease.com> <51EFEB66.8000603@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox