Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D8C60B5DBDF for ; Wed, 5 Oct 2011 18:12:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 24166-09; Wed, 5 Oct 2011 21:12:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 08CC1B5DBC4; Wed, 5 Oct 2011 18:12:30 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p95LCUk28021; Wed, 5 Oct 2011 17:12:30 -0400 (EDT) From: Bruce Momjian Message-Id: <201110052112.p95LCUk28021@momjian.us> Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows In-Reply-To: <1317739247-sup-2334@alvh.no-ip.org> To: Alvaro Herrera Date: Wed, 5 Oct 2011 17:12:30 -0400 (EDT) CC: Robert Haas , Michael Meskes , Jim Gray , Pg Bugs X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/51 X-Sequence-Number: 31321 Alvaro Herrera wrote: > > Excerpts from Robert Haas's message of mar oct 04 10:39:27 -0300 2011: > > On Tue, Oct 4, 2011 at 8:15 AM, Michael Meskes wrote: > > > >> 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. > > > > On at least some Windows builds, configure isn't used at all... so > > whatever values is being used would come from the MSVC build system. > > In fact, pg_config.h.win32 does not have the HAVE_LONG_LONG_INT symbol > at all -- only HAVE_LONG_LONG_INT_64 is in there. Is this wrong? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +