From: aihtdikh <aihtdikh@gmail.com>
To: Dev Kumkar <devdas.kumkar@gmail.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: ODBC : SQLGetData question
Date: Wed, 14 May 2014 16:47:25 +0800
Message-ID: <53732D9D.1060605@gmail.com> (raw)
In-Reply-To: <CALSLE1MSthQPLGdKDPC9cTozFSqWDzBeZtz6VnavY-Xjik6fGw@mail.gmail.com>
References: <CALSLE1P5zWBBckGQaOKQzcN-jkR_nn5PSno_b-iRS6cR4H=uvA@mail.gmail.com>
<53730FFB.5020304@gmail.com>
<CALSLE1MLEDoi4aoEQdE093yJBJygATTFWYhTvgAqhsEDYvJ0Uw@mail.gmail.com>
<CALSLE1MSthQPLGdKDPC9cTozFSqWDzBeZtz6VnavY-Xjik6fGw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 14/05/14 15:46, Dev Kumkar wrote:
>
>
> my_buff_len is defined as SQLLEN
> SQLLEN my_buff_len;
>
>
> if ((int)my_buff_len == SQL_NULL_DATA)
> {
> // will come here
> }
>
> The above casting solves the problem, please review?
>
That will work around the issue, but I'm stumped as to why it was not
working for you already.
It seems like your platform must be 64bit, and something somewhere is
converting what should be a 64bit SQLLEN into a 32bit value, but I can't
find anywhere in the source that does anything unsafe in this regard -
it's SQLLEN all the way.
Edit: Ah, Nick may be on the right path there.
Could the driver have been compiled with a different sqltypes.h than the
application?
If so, you could try compiling the driver under the same setup as your
application to see if that fixes it.
Regards,
Harun
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: aihtdikh@gmail.com, devdas.kumkar@gmail.com
Subject: Re: ODBC : SQLGetData question
In-Reply-To: <53732D9D.1060605@gmail.com>
References: <CALSLE1P5zWBBckGQaOKQzcN-jkR_nn5PSno_b-iRS6cR4H=uvA@mail.gmail.com> <53730FFB.5020304@gmail.com> <CALSLE1MLEDoi4aoEQdE093yJBJygATTFWYhTvgAqhsEDYvJ0Uw@mail.gmail.com> <CALSLE1MSthQPLGdKDPC9cTozFSqWDzBeZtz6VnavY-Xjik6fGw@mail.gmail.com> <53732D9D.1060605@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox