-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncated strings from Stored Procedure with varchar(max) output parameters #25
Comments
For me, varchar(max) crashes, because gofreetds tries to allocate size(...)+1 bytes, which is 1 larger than maximum allowed byte array size. |
Hope that the ca00c05 will fix this. |
Seams that this is limitation of freetds library.
|
Yes, this problem remains. |
For anyone reading this issue, In the end I resorted to using the Microsoft ODBC driver for Linux through database/sql to access varbinary(max) and varchar(max) rows without any issues. |
Is anyone having issues with receiving stored procedure output parameters that are varchar(max) when using gofreetds?
For me they get truncated to 255 characters. However, if my DBA changes the type of the parameter to varchar(4000) (for example), I get up to the full 4000 characters returned.
According to FreeTDS, varchar(max) support should be in TDS protocol version 7.2:
http://www.freetds.org/userguide/choosingtdsprotocol.htm
(gofreetds forces use of TDS 7.2)
Yet I can’t get varchar(max) to work in gofreetds.
We're using SQL Server 2012, FreeTDS 0.95.19 CentOS 7 x86_64
Please can anyone offer any assistance?
Many thanks in advance.
The text was updated successfully, but these errors were encountered: