Skip to Content.
Sympa Menu

freetds - RE: [freetds] FreeTDS problem on Solaris and HP-UX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] FreeTDS problem on Solaris and HP-UX
  • Date: Tue, 16 Dec 2003 12:05:31 +0100

>
> Hi,
>
> I have FreeTDS CVS HEAD working on Linux running isql++, but
> on Solaris
> and HP-UX there seems to be a problem:
>
> e.g.
>
> $ isql++ TRAJANDEVTDS username password
> Connected to sql server 12.05.0000 using libtdsodbc.so
> 0.62.dev.20031215
> (ODBC Version 3.0)
> SQL> select * from BOOK
> +> ;
> Error fetching string attribute: [FreeTDS][SQL Server]Column
> out of range
>
> I think this is probably due to short/int casts (IOUT etc)in
> odbc.c but
> haven't tracked down the source yet (perhaps _SQLColAttribute?).
>
> Any help appreciated.
>
> Cheers,
> Alex.
>

>From documentation:
SQLColAttribute returns information either in *NumericAttributePtr or in
*CharacterAttributePtr. Integer information is returned in
*NumericAttributePtr as a 32-bit, signed value

However we ouput even SQLSMALLINT... fixed in CVS.
Thanks for report.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page