Re: Compiler warnings in psqloodbc 08.03.0200

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Zoltan Boszormenyi" <zb(at)cybertec(dot)at>, "Hiroshi Inoue" <inoue(at)tpf(dot)co(dot)jp>
Cc: <pgsql-odbc(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Hans-Juergen Schoenig" <hs(at)cybertec(dot)at>
Subject: Re: Compiler warnings in psqloodbc 08.03.0200
Date: 2008-10-01 14:40:41
Message-ID: 013701c923d3$adf2ec60$0f01a8c0@IBMC9A0F63B40D
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi.

Information, one reality.

> Zoltan Boszormenyi wrote:

>> In pgapi30.c, two instances of
>> "cast from pointer to integer of different size"
>
> They may come from the strange handling of unixODBC's
> 64bit ODBC. Honestly I don't understand how to use
> 64-bit unixODBC correctly. Probably you can remove the
> warnings by #defining BUILD_REAL_64_BIT_MODE somewhere.

We tried it by RedHat x86_64. with unixODBC(rpm Package) before psqlODBC release(08.03.0300)
[hiroshi(at)info psqlodbc-08.03.0300x]$ odbc_config --cflags
-DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG=8

<case 1>
This had a big problem in operation.
Driver: BUILD_REAL_64_BIT_MODE
Application: None

<case 2>
This is comfortably.
Driver: BUILD_REAL_64_BIT_MODE
Application: BUILD_REAL_64_BIT_MODE

<case 3>
This is comfortably. (test of a simple query)
Driver: None
Application: BUILD_REAL_64_BIT_MODE

<case 4>
This is comfortably.
Driver: None
Application: None

Therefore, using BUILD_REAL_64_BIT_MODE complicates a problem now....
Note: They are not many tests.

Regards,
Hiroshi Saito

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2008-10-01 16:01:44 Re: Compiler warnings in psqloodbc 08.03.0200
Previous Message Craig Ringer 2008-10-01 05:33:46 ODBC Driver crash with MS Access 2007 (from GENERAL)