Skip site navigation (1) Skip section navigation (2)

Re: long ints use for 4-byte entities in ODBC

From: Nick Gorham <nick(at)easysoft(dot)com>
To: Peter Harvey <pharvey(at)codebydesign(dot)com>
Cc: Andrew Bell <acbell(at)iastate(dot)edu>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: long ints use for 4-byte entities in ODBC
Date: 2001-12-20 11:41:43
Message-ID: (view raw or whole thread)
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 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

In response to


pgsql-hackers by date

Next:From: Karel ZakDate: 2001-12-20 13:53:07
Subject: vs. ./configure
Previous:From: Thomas LockhartDate: 2001-12-20 05:25:39
Subject: Re: datetime and timespan deprecated

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group