Unexpected Paket Type 0x22
Brought to you by:
ickzon
Hi,
we have discovered a minor problem when using order by statements on Sybase 15.7 tables with the number of selected columns > 255.
In this case, Sybase TDS 5.0 defines a new Paket Type to return the index of the order by column within the select statement. If the index is beyond 255 a new Paket Type 0x22 is sent but not handled with the current 1.3.1 version of jTds Driver.
See Sybase OrderBy2 Definition
http://www.sybase.com/content/1013412/tds34.pdf Page 209
I have attached a patch for this to be integrated into the main release.
Best regards
Dieter
Anonymous