From: Michael Meskes <meskes@postgresql.org>
To: Jim Gray <jim.gray@bull.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows
Date: Tue, 4 Oct 2011 14:15:39 +0200
Message-ID: <20111004121539.GA9786@feivel.credativ.lan> (raw)
In-Reply-To: <201110032246.p93MkNb9070001@wwwmaster.postgresql.org>
References: <201110032246.p93MkNb9070001@wwwmaster.postgresql.org>
Hi Jim,
> 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
This suggests that HAVE_LONG_LONG_INT was not defined during ecpg build. Or in
other words ecpg thinks long long is not supported.
> 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
Did you also change the variable definition to long long?
> 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"
Well, this bug is (at least I don't know otherwise) fixed for more than a year.
Maybe the configure test doesn't work on Windows? I don't know.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: meskes@postgresql.org, jim.gray@bull.com
Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows
In-Reply-To: <20111004121539.GA9786@feivel.credativ.lan>
References: <201110032246.p93MkNb9070001@wwwmaster.postgresql.org> <20111004121539.GA9786@feivel.credativ.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox