Re: BUG #5464: ecpg on 64bit system converts "long long" to "long" - Mailing list pgsql-bugs

From John R Pierce
Subject Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
Date
Msg-id 4BF42132.6000803@hogranch.com
Whole thread Raw
In response to Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"  (Michael Meskes <meskes@postgresql.org>)
Responses Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
List pgsql-bugs
Michael Meskes wrote:
> On Wed, May 19, 2010 at 08:53:12AM +0000, Michael Enke wrote:
>
>> If you run it through ecpg, in the resulting c file
>> the variable test has type long on 64 bit system.
>> On 32 bit system it is long long.
>>
>
> Apparently when this code was written "long long" was 64bit, but it doesn't
> seem to be that way on 64bit systems nowadays. I will check to see if there is
> an easy fix. If it is fairly interruptive the fix won't make it into 9.0
> though.
>

I'm pretty sure it varies with the 64 bit system.  I believe on IBM
Power, LONG LONG *is* 64 bit.

pgsql-bugs by date:

Previous
From: Michael Meskes
Date:
Subject: Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"
Next
From: "Dmitry Funk"
Date:
Subject: BUG #5466: Asia/Novosibirsk timezone problem