freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] [unixODBC-dev] ODBC on 64 bit linux - test64
- From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
- To: "Development issues and topics for unixODBC" <unixodbc-dev AT easysoft.com>, "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] [unixODBC-dev] ODBC on 64 bit linux - test64
- Date: Tue, 22 Jan 2008 09:53:01 +0100
>
> On Mon, Jan 21, 2008 at 03:33:05PM +0100, ZIGLIO, Frediano,
> VF-IT wrote:
> > test64 tests (currently) SQL_DESC_ROWS_PROCESSED_PTR. This
> pointer holds
> > the pointer to how many rows are returned/processed. I
> wrote test cause
> > this pointer is bound to many attributes. The test demonstrate that
> > indipendently from how you set this pointer it's always
> SQLULEN (that is
> > 64bit on 64bit platforms). So
> > - SQLSetStmtAttr SQL_ATTR_PARAMS_PROCESSED_PTR
> > - SQLSetDescField SQL_DESC_ROWS_PROCESSED_PTR (both IPD and IRD)
> > - SQLSetStmtAttr SQL_ATTR_PARAMS_PROCESSED_PTR
> > - parameter pirow of SQLParamOptions
> > - parameter RowCountPtr of SQLExtendedFetch
> > are SQLULEN* under 64bit!
>
> > This is not well stated at http://support.microsoft.com/kb/298678 !!
> > For this reason SQLROWSETSIZE unixODBC type should be SQLULEN not
> > SQLUINTEGER !!
>
> Which they are with unixODBC 2.2.11; are you saying that the
> typedef of
> SQLROWSETSIZE has regressed, or are you using an older version?
>
I don't know, on Fedora Core 6 (I think results on Debian/Ubuntu should
be different)
$ cat mao.c
#include <sqltypes.h>
mao mao SQLROWSETSIZE;
$ gcc -DBUILD_REAL_64_BIT_MODE -DSIZEOF_LONG=8 -DSIZEOF_LONG_INT=8 -E
mao.c | grep 'SQLROWSETSIZE\|mao mao'
typedef SQLUINTEGER SQLROWSETSIZE;
mao mao SQLROWSETSIZE;
$ gcc -DSIZEOF_LONG=8 -DSIZEOF_LONG_INT=8 -E mao.c | grep
'SQLROWSETSIZE\|mao mao'
typedef SQLUINTEGER SQLROWSETSIZE;
mao mao SQLROWSETSIZE;
bye
Frediano Ziglio
-
Re: [freetds] ODBC on 64 bit linux fix.
, (continued)
-
Re: [freetds] ODBC on 64 bit linux fix.,
Steve Langasek, 01/18/2008
-
Re: [freetds] ODBC on 64 bit linux fix.,
Sebastien FLAESCH, 01/18/2008
- Re: [freetds] ODBC on 64 bit linux fix., Sebastien FLAESCH, 01/18/2008
- Re: [freetds] ODBC on 64 bit linux fix., Christos Zoulas, 01/18/2008
- Re: [freetds] ODBC on 64 bit linux fix., ZIGLIO, Frediano, VF-IT, 01/18/2008
- Re: [freetds] ODBC on 64 bit linux fix., Sebastien FLAESCH, 01/18/2008
- Re: [freetds] ODBC on 64 bit linux fix., ZIGLIO, Frediano, VF-IT, 01/21/2008
- Re: [freetds] ODBC on 64 bit linux fix., Sebastien FLAESCH, 01/21/2008
- Re: [freetds] ODBC on 64 bit linux fix., ZIGLIO, Frediano, VF-IT, 01/21/2008
- [freetds] ODBC on 64 bit linux - test64, ZIGLIO, Frediano, VF-IT, 01/21/2008
- Message not available
- Message not available
- Message not available
- Re: [freetds] [unixODBC-dev] ODBC on 64 bit linux - test64, ZIGLIO, Frediano, VF-IT, 01/22/2008
- Re: [freetds] [unixODBC-dev] ODBC on 64 bit linux - test64, Steve Langasek, 01/24/2008
- Re: [freetds] [unixODBC-dev] ODBC on 64 bit linux - test64, Frediano Ziglio, 01/24/2008
-
Re: [freetds] ODBC on 64 bit linux fix.,
Sebastien FLAESCH, 01/18/2008
-
Re: [freetds] ODBC on 64 bit linux fix.,
Steve Langasek, 01/18/2008
Archive powered by MHonArc 2.6.24.