Comment 2 for bug 613238

Revision history for this message
Mikhail Veygman (mveygman) wrote :

I think I may have found a problem and it is in the way that the library is built.

By default if TDS version is not specified it will set the TDS version to 5.0. There is a way to reset the version of connection after the login, but there doesn't appear to be any calls to the function that does it.

With this the TDS connection version is set to the default from the build which is 5.0 and hence will set the max_len of the varchar, varbinary, etc fields to 255 vs 8000 for the version of TDS 7+.