-
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
SqlProgrammability provider fails to update/bulk copy into tables with computed persistent columns #272
Comments
I've added a test case for this issue in a branch: https://github.com/smoothdeveloper/FSharp.Data.SqlClient/tree/issue_bulkcopy_computed_columns
|
By my reading of dotnet/SqlClient#275, it looks like this is an issue for System.Data.SqlClient on netcore, but it has been fixed in Microsoft.Data.SqlClient. (I have not tested this.) This issue might be resolved by migrating to Microsoft.Data.SqlClient as suggested in #374 |
Description
SqlProgrammability provider fails to update/bulk copy into tables with computed persistent columns - you get exception when you call update method:
System.Data.NoNullAllowedException: Column '{persistentColumn}' does not allow nulls.
Repro steps
Please provide the steps required to reproduce the problem
Expected behavior
New row is inserted into the table.
Actual behavior
System.Data.NoNullAllowedException: Column 'B' does not allow nulls.
Known workarounds
Following code can be used - works for update only:
Related information
.Net Standard 4.6.2
SqlServer 2016
SqlClient 1.8.1
The text was updated successfully, but these errors were encountered: