Menu

#13 Support varchar > 255 characters long

Unstable_(example)
open
nobody
None
5
2016-11-03
2016-11-03
No

Attached patch supports long vaarchar / text / binary data. Assumes you have built against and run against ctlib 12.5 or later, I've not tested with FreeTDS.

As far as I can test, this works for select, SP result sets, cursor.execute() for insert/update, cursor.callproc() parameters, BCP-in and BCP-out.

If you are getting errors like 'A data length of 256 exceeds the maximum length allowed for CHAR data.' or 'Character or binary data returned from Adaptive Server has been truncated. The client application does not support more than 255 bytes of data as a result column or output parameter.' this patch may help.

Line numbers may be a bit off, we have some local mods also.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.