X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D23A59DC843 for ; Thu, 26 Jan 2006 11:57:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23807-07 for ; Thu, 26 Jan 2006 11:57:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 29B609DC809 for ; Thu, 26 Jan 2006 11:57:08 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k0QFvDvV016461; Thu, 26 Jan 2006 10:57:13 -0500 (EST) To: "Dave Page" cc: "Ludek Finstrle" , pgsql-odbc@postgresql.org Subject: Re: Odbcapi30.c - 64 bit compiler warning cleanup In-reply-to: References: Comments: In-reply-to "Dave Page" message dated "Thu, 26 Jan 2006 14:55:06 +0000" Date: Thu, 26 Jan 2006 10:57:13 -0500 Message-ID: <16460.1138291033@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.099 required=5 tests=[AWL=0.099] X-Spam-Score: 0.099 X-Spam-Level: X-Archive-Number: 200601/250 X-Sequence-Number: 7065 "Dave Page" writes: >> From: Ludek Finstrle [mailto:luf@pzkagis.cz] >> I don't solve the problem in options.c where 64-bit pointer may >> be passwd throught 32-bit number. I don't know how to solve it. > No nor I. Any chance of a little help with this one please Tom? I assume that you can't alter the signature of PGAPI_SetConnectOption, ie, vParam really has to be SQLUINTEGER and not some other type? If so, I'd argue that that whole block (the "if (fOption == 30002 && vParam)" stuff) ought to be #ifdef WIN32. It's certainly useless on any other platform, and Microsoft is never going to figure out how to 64-bit-ify that pile of junk they call an OS, so no need to bend our brains wondering how this would work on 64-bit Windows. regards, tom lane