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

Поиск
Список
Период
Сортировка
От Michael Enke
Тема BUG #5464: ecpg on 64bit system converts "long long" to "long"
Дата
Msg-id 201005190853.o4J8rCJk054335@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #5464: ecpg on 64bit system converts "long long" to "long"  (Michael Meskes <meskes@postgresql.org>)
Список 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 по дате отправления:

Предыдущее
От: "Valentine Gogichashvili"
Дата:
Сообщение: BUG #5465: dblink TCP connection hangs blocking translation from being terminated
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #5465: dblink TCP connection hangs blocking translation from being terminated