Skip to Content.
Sympa Menu

freetds - TDS 7.0 and queries over 512 bytes

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Brandon M. Reynolds" <breynolds AT comtime.com>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Subject: TDS 7.0 and queries over 512 bytes
  • Date: Thu, 12 Oct 2000 10:41:13 -0400


It appears that TDS compiled with tdsversion 7.0 breaks with
queries longer than 512 bytes. I used sqsh 1.7 and I used a
query of all x's with a space every 80 characters and it crashes.

Perhaps this code is the culprit? In write.c:

int tds_put_byte(TDSSOCKET *tds, unsigned char c)
{
/* FIX ME -- add packet size support */
if (tds->out_pos>=512) {
tds_write_packet(tds,0x0);
tds_init_write_buf(tds);
}
tds->out_buf[tds->out_pos++]=c;
}

Brandon M. Reynolds Ph: (330) 644-3059
Systems Engineer Fax: (330) 644-8110
Commercial Timesharing Inc. Email: bmr AT comtime.com




Archive powered by MHonArc 2.6.24.

Top of Page