freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] [PATCH] SYBUINT<n> support
- Date: Wed, 9 Jan 2013 16:12:02 +0000
2012/12/31 Ian Lister <freetds-list AT lister.dnsalias.net>:
> Hi,
>
> I was running into a problem due to FreeTDS not supporting Sybase's
> unsigned integer types (SYBUINT1/2/4/8). It was manifested as cs_convert
> failing to convert other types (such as SYBNUMERIC) to those unsigned
> types, and reporting:
>
> cs_convert: cslib user api layer: external error: Conversion between 108
> and -1 datatypes is not supported
>
> I have attached a patch that addresses the issue for me, in the hope that
> it might be useful for others. I tried to make it fairly complete in the
> areas of the code that I touched, but I was only following my nose so have
> quite likely overlooked other parts of the code (including test cases) that
> are also lacking SYBUINTn support. YMMV etc.
>
> Ian
>
The big doubt I have with this patch is that it could let you use
SYBUINT types even if server is not accepting that types... probably
passing a tds variable to cs_server_type could help.
Frediano
-
Re: [freetds] [PATCH] SYBUINT<n> support,
Frediano Ziglio, 01/09/2013
- <Possible follow-up(s)>
- Re: [freetds] [PATCH] SYBUINT<n> support, Frediano Ziglio, 01/13/2013
Archive powered by MHonArc 2.6.24.