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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Wed, 1 Oct 2008 23:40:41 +0900
  • Message-id: <013701c923d3$adf2ec60$0f01a8c0@IBMC9A0F63B40D> <text/plain>

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




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group