-
Notifications
You must be signed in to change notification settings - Fork 430
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
fix for connection close on using variant type (issue#91) #99
fix for connection close on using variant type (issue#91) #99
Conversation
Please attach a jar file, since I cannot build. I will test it for you. |
Here is the jar mssql-jdbc-6.1.1.jre8.zip. |
Confirmed that this fixes the reported issue. |
When is the next release expected? |
Would it be possible to do something similar (i.e. skipping the part of the packet dealing with the sql_variant column) but rather than throw an exception, have the driver return a While it'd be great to have full support for real handling of sql_variant types, I'd settle for being able to at least skip them and have the driver return Alternatively, having the driver not break down unless the sql_variant column is actually fetched. Could still throw an exception but it'd be in the handling of the |
Thanks @sualeh for testing it. We are expecting to release a preview of the driver next week. |
@sehrope Can you please raise this as an issue? We will place it in backlog and consider it for enhancement. Both the alternatives you suggested will take almost equivalent effort, as driver has to understand the structure of variant received in order to skip or return null. As for the second alternative, since SQL Server sends rows of data, irrespective of if the user want to fetches or skips the variant column, driver has to read the variant in the first row to fetch any other column in the second row. If driver is going to read/skip variant anyways, we can implement it to return null rather than throwing error as per your first suggestion. |
That'd be awesome. I created issue #101 for this. |
No description provided.