BUG #5464: ecpg on 64bit system converts "long long" to "long"

From: "Michael Enke" <michael(dot)enke(at)wincor-nixdorf(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5464: ecpg on 64bit system converts "long long" to "long"
Date: 2010-05-19 08:53:12
Message-ID: 201005190853.o4J8rCJk054335@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5464
Logged by: Michael Enke
Email address: michael(dot)enke(at)wincor-nixdorf(dot)com
PostgreSQL version: 8.4.4
Operating system: Linux
Description: ecpg on 64bit system converts "long long" to "long"
Details:

This applies for at least ecpg 4.5.0 and 4.4.0.
On 32 bit system the type is not changed.
Example:
----------------------------------------
EXEC SQL INCLUDE sqlca;

EXEC SQL BEGIN DECLARE SECTION;
long long test;
EXEC SQL END DECLARE SECTION;

int main(int argc, char **argv) {

return 0;
}
----------------------------------------
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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Valentine Gogichashvili 2010-05-19 09:10:29 BUG #5465: dblink TCP connection hangs blocking translation from being terminated
Previous Message Craig Ringer 2010-05-19 05:02:24 Re: BUG #5463: incorrect password when downloading/installing