Skip to Content.
Sympa Menu

freetds - RE: Strange error in tsql

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: RE: Strange error in tsql
  • Date: 07 Nov 2002 22:35:28 +0100


Good spot James !

>
> But 5.0 sends ee, ae, d1, 1, 0?
> Received packet @ 2002-11-07 15:43:34.383225
> 0000 ee 0d 00 01 00 00 30 0a 00 00 00 6c 21 4d 12 00

Row, numeric of 33 (yes, 33!) bytes. So we must change numeric limit...
(in tds.h is defined as 17 bytes...)

> 0010 ae 01 00 00 d1 21 01 00 00 00 00 00 00 00 00 00

Yes, is a 33 bytes

from token.c

/* server is going to crash freetds ??*/
if (colsize > sizeof(num->array))
return TDS_FAIL;
tds_get_n(tds,num->array,colsize);

So, we have two problem:
- numeric should support 256 bit number, not only 128
- we do not check result of tds_get_data...

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page