TDS 7.0 and queries over 512 bytes
Brandon M. Reynolds
breynolds at comtime.com
Thu Oct 12 10:41:13 EDT 2000
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
More information about the FreeTDS
mailing list