[freetds] New Sybase datatype?

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Thu Mar 15 04:02:16 EDT 2007


> 
> crawford charles wrote:
> > 
> > I believe I have encountered a new (to me anyway)
> > datatype.  The value is 0x7B, and it looks like it
> > could be similar to a INTN (0x26) or FLTN (0x6d) 
> > from its form.
> > 
> > I searched the 3.6 and 3.8 Sybase TD Functional spec,
> > and the FreeTDS 0.64 code base and documentation.  I'd
> > appreciate any help.
> 
> I would be happy to help but am very time-constrained of late.  
> 
> The easiest thing for me would be if you could modify
> src/dblib/unittest/rpc.c to provoke the new datatype from the 
> server.  The
> library should complain and leave enough information in the 
> TDSDUMP log to
> get started.  Then I'll see if the sybase server I have 
> access to behaves
> the same way.  If so, I would think the work to add the new 
> type would be
> quick.  
> 
> And then, you know, we'd have to update the docs.  ;-)
> 
> Regards, 
> 

0x7b == TDS_DATEN
DATE is a new ASE type. Mainly is the date part of a DATETIME. I don't
rememember if TIME info is missing or 0. The strange thing is that
server declare a length of 8 but send 4. You can see two date, one
length 4 and one NULL (len == 0)

freddy77




More information about the FreeTDS mailing list