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

From Michael Enke
Subject BUG #5464: ecpg on 64bit system converts "long long" to "long"
Date
Msg-id 201005190853.o4J8rCJk054335@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"  (Michael Meskes <meskes@postgresql.org>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      5464
Logged by:          Michael Enke
Email address:      michael.enke@wincor-nixdorf.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.

pgsql-bugs by date:

Previous
From: "Valentine Gogichashvili"
Date:
Subject: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
Next
From: Magnus Hagander
Date:
Subject: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated