freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
Strange error in tsql,
Frediano Ziglio, 11/07/2002
- <Possible follow-up(s)>
- RE: Strange error in tsql, Lowden, James K, 11/07/2002
- Re: Strange error in tsql, Brian Bruns, 11/07/2002
- RE: Strange error in tsql, Lowden, James K, 11/07/2002
- RE: Strange error in tsql, Frediano Ziglio, 11/07/2002
- RE: Strange error in tsql, Lowden, James K, 11/08/2002
- RE: Strange error in tsql, Frediano Ziglio, 11/08/2002
- RE: Strange error in tsql, Frediano Ziglio, 11/08/2002
- RE: Strange error in tsql, Frediano Ziglio, 11/08/2002
Archive powered by MHonArc 2.6.24.