-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Revert the PRs that made DBNull.Value and NullString.Value treated as $null
#11584
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
Revert the PRs that made DBNull.Value and NullString.Value treated as $null
#11584
Conversation
…ullLike() (PowerShell#10781)" This reverts commit 25286eb.
…null` when comparing with `$null` and casting to bool (PowerShell#9794)" This reverts commit b34e331.
adityapatwardhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with nitpicks
|
@adityapatwardhan You just need to review the 3rd commit. The previous 2 are from |
|
@adityapatwardhan @TravisEz13 Also, the windows build failed at the packaging phase with a "calling method on null-value" error: |
|
@SteveL-MSFT The PR is targetting RC.2 branch so it is auto approved for RC. Merged this even though there were failures in Windows packaging as we have differences in content in metadata.json in RC.2 branch. It was fixed to unblock CI with PR #11372 |
|
🎉 Handy links: |
|
Why was this reverted? |
|
@ili101 the change was never included in a stable release, so reverting it is not a breaking change. Please see this issue for discussion -- depending on what is decided by the PS team and community, the change may be reintroduced, likely with some alterations if it is, in a later release, likely at least 7.1 🙂 |
PR Summary
Revert the PRs that made
DBNull.ValueandNullString.Valuetreated as$null:Also update code for Coalescing and Null-conditional operators to use 'IsNull' instead.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.