From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Status of GNADE ODBC under Debian 64-bit
Date: Tue, 4 Sep 2012 13:54:14 +0200
Date: 2012-09-04T13:54:14+02:00 [thread overview]
Message-ID: <1bujq0y5qhbut$.omax4w4vmm7$.dlg@40tude.net> (raw)
In-Reply-To: 474c2d57-9ac8-42f0-afd1-b32e4d8118b5@googlegroups.com
On Tue, 4 Sep 2012 02:40:32 -0700 (PDT), Graham Stark wrote:
> I'm interested in this as I use GNADE quite a bit.
>
> If you just change SQLUINTEGER to SQLUBIGINT in the indicated places Ludovic's
> warning goes away.
Maybe, but he reported rather a need to verify consistency on 64-bit
platform.
Should I report it independently to sourceforge?
> The SQLLEN thing looks like a different problem and really quite nasty - I
> hadn't come across this before. My reading of it is that some ODBC drivers
> might need 32 bits there even on 64 bit systems; see this, for instance:
> http://www.martin-evans.me.uk/node/99
>
> I have notice some funny behaviour retrieving strings from databases,
> where the length is not returned correctly, so maybe that's the cause.
> Never seen a crash, though.
Specifically to unixodbc and Debian, the macro BUILD_LEGACY_64_BIT_MODE if
defined in sqltypes.h, makes SQLLEN 32-bit. When undefined it is 64-bit.
The effect of SQLINTEGER (always 32-bit) passed instead of 64-bit is memory
corruption.
It should also become an issue for native Windows 64-bit applications, once
GNAT to support them.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2012-09-12 0:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 19:17 Status of GNADE ODBC under Debian 64-bit Dmitry A. Kazakov
2012-09-04 9:40 ` Graham Stark
2012-09-04 11:54 ` Dmitry A. Kazakov [this message]
2012-09-07 9:51 ` Stephen Leake
2012-09-07 10:57 ` Ludovic Brenta
2012-09-07 11:25 ` Graham Stark
2012-09-07 12:10 ` Dmitry A. Kazakov
2012-09-08 19:17 ` Stephen Leake
2012-09-10 18:10 ` Graham Stark
2012-09-07 11:56 ` Dmitry A. Kazakov
2012-09-07 16:06 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox