Fix | Allow writing DateOnly instance as a Variant parameter#4294
Fix | Allow writing DateOnly instance as a Variant parameter#4294edwardneal wants to merge 1 commit into
Conversation
|
@edwardneal Would this also fix #3934 ? |
|
While it's definitely a good idea to retest once CI has run, I don't know if it'll fix that specific issue. I wasn't able to reproduce it in the first instance, and only bumped into this while testing other scenarios adjacent to it. There are a pair of currently-unreported bugs which crop up when sending |
|
This pull request has been marked as stale due to inactivity for more than 30 days. If you would like to keep this pull request open, please provide an update or respond to any comments. Otherwise, it will be closed automatically in 7 days. |
|
This PR is not stale. |
|
@edwardneal I got help from AI with some analysis of your fix, and it looks like it might well fix #3934
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Description
This resolves an issue described in #3953: when passing a
DateOnlyinstance as a parameter with aSqlDbTypeofVariant, the current response is an exception with message:This exception is legitimate, and it's a result of
WriteSqlVariantValueandWriteSqlVariantDataRowValuenot containing a code path which writes the data - so we're only sending thesql_variantheader. Adding these code paths resolves the issue and eliminates the exception.Issues
Fixes #3953.
Testing
The existing
DateTimeVariantTestshave been modified to add test coverage.