Problem with long queries (longer than 2 tds->out_buf)
hook at aktrad.ru
Wed May 17 05:14:19 EDT 2000
Seems like freetds is having a problem with long queries (freetds snapshot
from 2000-04-24, compiled for TDS 4.2 on FreeBSD 4.0, connection to MSSQL
7.0). If the query is bigger than twice the size of tds->out_buf - 16 bytes,
retrieving results of the query always returns FAILED.
For example, the default size of tds->out_buf is 512 bytes. Queries
under 1008 (512*2-16) bytes are fine, anything larger than that causes an
error. If the buffer size is increased, the limit also increases - if
tds->out_buf size is set to 1024, all queries up to 1024*2-16=2032 bytes are
executed, 2033 bytes and longer - fail.
Is this a known bug?
More information about the FreeTDS