-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fixed length binary columns in user defined table types fail when constructed #413
Comments
Thanks for the issue report @daniellittledev. In #362, a workaround was to use I'll try to put this under test and fix the call to SqlMetaData constructor accordingly. |
@smoothdeveloper I've submitted a PR with what I think may be the fix for this issue. |
@suou-ryuu thanks a lot for the fix PR, with added test. I'll take a moment to review and run the test locally, and issue a new release when possible. @daniellittledev, if you happen to test the fix on your own and confirm in meantime, please let us know. Thanks again all! |
@smoothdeveloper Thanks for the quick reply.
Superb. Looking forward to it :) |
@smoothdeveloper Sorry to pester, but do you have an ETA for when you'll be able to confirm this fix and issue a new release? We currently need this as it's blocking progress on a few projects. Thank you in advance |
@suou-ryuu there should be a 2.1.1 version with your PR changes upon validation from nuget.org. |
@smoothdeveloper Fantastic. Thank you. |
@suou-ryuu thanks for confirming on your end and no problems. Just so you know, once you've got the main library to build, you can generate the nuget package yourself: This allows you to drop a new version locally before a release is made. @daniellittledev if you have a chance to try the new release and if it fixes this issue, we can close it? Thanks again @suou-ryuu for contributing the fix. |
Issue Summary
When using a user defined table type with a fixed length binary column the wrong constructor for
SqlMetaData
is used resulting in the following exception.This line looks like it's causing the issue, which incorrectly assumes if it is a fixed length that it can safely use the two parameter constructor:
FSharp.Data.SqlClient/src/SqlClient.DesignTime/DesignTime.fs
Line 544 in 0bc5129
To Reproduce
Error
Expected behavior
There should not be an error in this case.
What you can do
The text was updated successfully, but these errors were encountered: