tds_get_size_by_type for SYBMSDATE

LacaK <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hi,
when I look into tds_types.h (which is build on misc/types.csv) there is 
function tds_get_size_by_type() used f.e. by dbconvert()
And for SYBMSDATE it returns 4 (IMO it is wrong set size=4 in types.csv)
Is it correct ?
(as far as I understand it should be size if struct which holds this 
data type i.e.:
there should be:
  case SYMBSDATE:
  case SYMBSTIME:
  case SYMBSDATETIME2:
  case SYMBSDATETIMEOFFSET:
     return sizeof(TDS_DATETIMEALL);

?
When I change it this way, it works as expected for me.
Thanks
-Laco.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.