pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: Ludek Finstrle <luf@pzkagis.cz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Odbcapi30.c - 64 bit compiler warning cleanup
Date: Thu, 26 Jan 2006 10:57:13 -0500
Message-ID: <16460.1138291033@sss.pgh.pa.us> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E40103DB4E@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E40103DB4E@ratbert.vale-housing.co.uk>

"Dave Page" <dpage@vale-housing.co.uk> 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



view thread (26+ messages)  latest in thread

Message-ID: <16460.1138291033@sss.pgh.pa.us>
Permalink:  ../16460.1138291033@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16460.1138291033@sss.pgh.pa.us

 · 

reply

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-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dpage@vale-housing.co.uk, luf@pzkagis.cz
  Subject: Re: Odbcapi30.c - 64 bit compiler warning cleanup
  In-Reply-To: <16460.1138291033@sss.pgh.pa.us>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E40103DB4E@ratbert.vale-housing.co.uk> <16460.1138291033@sss.pgh.pa.us>

* 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