Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC on 64 bit linux fix.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] ODBC on 64 bit linux fix.
  • Date: Fri, 18 Jan 2008 08:18:06 -0500

On Jan 18, 9:19am, sf AT 4js.com (Sebastien FLAESCH) wrote:
-- Subject: Re: [freetds] ODBC on 64 bit linux fix.

| Hi all,
|
| We are about to test our product with FreeTDS on Linux 64b...
|
| In our code we use SQLULEN and SQLLEN (comes from the Windows 64b port
experience):
|
| SQLRETURN r;
| SQLUSMALLINT pos = i + 1;
| SQLSMALLINT namelen;
| SQLSMALLINT sqltype;
| * SQLULEN precision;
| SQLSMALLINT scale;
| SQLSMALLINT nullable;
| * SQLULEN size;
| SQLSMALLINT ctype = 0;
| r = SQLDescribeCol(st->stmtHandle, pos, NULL, 0,
| &namelen, &sqltype, &precision, &scale, &nullable);
|
| So first I doubt that Christos patch is I good idea:
|
| -SQLParamOptions(SQLHSTMT hstmt, SQLULEN crow, SQLULEN FAR * pirow)
| +SQLParamOptions(SQLHSTMT hstmt, SQLUINTEGER crow, SQLUINTEGER FAR * pirow)
|
| Changing SQLULEN to SQLUINTEGER in FreeTDS would break the standards... no?

My sqlext.h header disagrees with you.

christos




Archive powered by MHonArc 2.6.24.

Top of Page