Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 984D6B5DC02 for ; Mon, 3 Oct 2011 19:46:24 -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 42215-02 for ; Mon, 3 Oct 2011 22:46:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id CA2E7B5DBF5 for ; Mon, 3 Oct 2011 19:46:23 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p93MkNOv070002 for ; Mon, 3 Oct 2011 22:46:23 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p93MkNb9070001; Mon, 3 Oct 2011 22:46:23 GMT (envelope-from www) Date: Mon, 3 Oct 2011 22:46:23 GMT Message-Id: <201110032246.p93MkNb9070001@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6238: ECPG converts "long long" to long on Windows From: "Jim Gray" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/18 X-Sequence-Number: 31288 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?