BUG #6238: ECPG converts "long long" to long on Windows

Поиск
Список
Период
Сортировка
От Jim Gray
Тема BUG #6238: ECPG converts "long long" to long on Windows
Дата
Msg-id 201110032246.p93MkNb9070001@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #6238: ECPG converts "long long" to long on Windows  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      6238
Logged by:          Jim Gray
Email address:      jim.gray@bull.com
PostgreSQL version: 9.1.1
Operating system:   Windows XP
Description:        ECPG converts "long long" to long on Windows
Details:

Postgres 9.1.1 installed on a Windows XP PC.
Running ECPG with "long long" data type specified in the SQL DECLARE SECTION
results in "long" being used instead.  The same input file works OK on Linux
with Postgres 9.0.3   Manually changing the data type to "long long" in the
ECPG output file on Windows:
ECPGt_long_long,&(_cpp_i_pkd1),(long)1,(long)1,sizeof(long long) -- results
in run time error "unsupported data type".  I am using MS Visual C++ Express
2010 on Windows, which accepts "long long" to mean the same thing as
__int64, but ECPG doesn't recognize the later.
May be related to BUG #5464: ecpg on 64bit system converts "long long" to
"long"
By the way, why is Postgres still using MSVS 2008 instead of the free MSVC
2010 Express for Windows builds?

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Jim Gray"
Дата:
Сообщение: BUG #6237: Hang during install database initialization
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #6237: Hang during install database initialization