freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: [freetds] type problem
- Date: Fri, 8 Jun 2007 12:10:53 +0200
>From TODO
Bug? ML 2007-05-28, odd datatype and packet size
"unknown marker error with Sybase ASE 15.0, character
encoding-related"
type collision between Sybase and Microsoft implementations,
same
value but different variable size
well... this is a big problem!!
Sybase and Microsoft use different enumerations for "column type".
We have a collision, that is XSYBCHAR type have the save value of
TDS_LONGCHAR (or whatever) however XSYBCHAR have a length of 2 bytes
while TDS_LONGCHAR have a length of 4 bytes... this cause the unknown
marker error :(
Currently I tried a small patch (see attachment). As you can see it's
not that short... I cannot test it cause I currently don't have a Sybase
15.0 set up to test :( For the long term perhaps the better way is to
use another enumerations for column_type that should threat some sort of
"libTDS types" instead of a mixed enumerations and should test correctly
if the server is sending a valid type (that is a Sybase server should
not send a column type that only Microsoft support...)
freddy77
Attachment:
vedi.diff.gz
Description: vedi.diff.gz
- [freetds] type problem, ZIGLIO, Frediano, VF-IT, 06/08/2007
Archive powered by MHonArc 2.6.24.