Re: long ints use for 4-byte entities in ODBC
Nick Gorham <nick@easysoft.com>
From: Nick Gorham <nick@easysoft.com>
To: Peter Harvey <pharvey@codebydesign.com>
Cc: Andrew Bell <acbell@iastate.edu>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2001-12-20T11:41:43Z
Lists: pgsql-hackers
Peter Harvey wrote: > > I was installing the ODBC driver on an alpha box. Problem is that there > > are assumptions in the typedefs that a four byte integer is a "long > > int". Of course, this is often an incorrect assumption. I can fix this, > > but wanted to know how people wanted this done. How do you handle this > > issue in the server? Seems confingure.in and associated files is the most > > reasonable way to fix this to me. > > Also; which driver manager are you using? I think Nick Gorham has been > working on this issue within unixODBC. > > Peter AFAIK there should be nothing wrong with typedef Int4 int instead of the typedef Int4 long which is plainly wrong on 64 bit platforms. -- Nick Gorham Easysoft Ltd