Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 19BCFB5DBC7 for ; Tue, 4 Oct 2011 11:44:36 -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 53185-06; Tue, 4 Oct 2011 14:44:29 +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 lists.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 057B7B5DC00; Tue, 4 Oct 2011 11:44:28 -0300 (ADT) Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com.commandprompt.com [207.173.203.215]) by lists.commandprompt.com (Postfix) with ESMTPA id 908DA34C39D; Tue, 4 Oct 2011 07:44:26 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([200.126.68.131] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTP (2.0.1); 4 Oct 2011 07:44:23 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1BC7E6E36E; Tue, 4 Oct 2011 11:44:23 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Michael Meskes , Jim Gray , Pg Bugs Subject: Re: BUG #6238: ECPG converts "long long" to long on Windows From: Alvaro Herrera To: Robert Haas In-reply-to: References: <201110032246.p93MkNb9070001@wwwmaster.postgresql.org> <20111004121539.GA9786@feivel.credativ.lan> Date: Tue, 04 Oct 2011 11:44:22 -0300 Message-Id: <1317739247-sup-2334@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Assp-Version: 2.0.1(3.2.15) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-39466-13379 X-Assp-Original-Subject: Re: [BUGS] BUG #6238: ECPG converts "long long" to long on Windows X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/28 X-Sequence-Number: 31298 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. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support