8000 Revert the PRs that made `DBNull.Value` and `NullString.Value` treated as `$null` by daxian-dbw · Pull Request #11648 · PowerShell/PowerShell · GitHub 8000
[go: up one dir, main page]

Skip to content

Conversation

@daxian-dbw
Copy link
Member
@daxian-dbw daxian-dbw commented Jan 21, 2020

PR Summary

Revert the PRs that made DBNull.Value and NullString.Value treated as $null:

Also update code for Coalescing and Null-conditional operators to use 'IsNull' instead.
This is cherry-picked from the v7.0.0-rc.2 tagged branch. The reversion was did originally in #11584 targeting the v7.0.0-rc.2 release branch.

Note: there are nice syntax/formatting changes made in the original PRs that I wish we could keep, but making extra changes to keep those in this PR will complicate the reversion and may result in mistakes. So I just revert all changes from those 2 PRs.

PR Context

There has been concerns about the inconsistencies the original changes brought to the language.
See #11604 for the discussion going on.

PR Checklist

@ghost ghost assigned daxian-dbw Jan 21, 2020
@daxian-dbw daxian-dbw added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Jan 21, 2020
@daxian-dbw daxian-dbw added this to the 7.1.0-preview.1 milestone Jan 21, 2020
@daxian-dbw
Copy link
Member Author

Revert the changes in Startup.Tests.ps1 because the experimental features are turned on by default in the master branch, which causes those 2 assemblies get loaded at startup.

/// Used to compare two objects for equality converting the second to the type of the first, if required.
/// </summary>
/// <param name="first">First object.</param>
/// <param name="second">Object to compare first to.</param>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daxian-dbw, your last commit had 1 failures in PowerShell-CI-static-analysis
Verify Markdown Links.Verify links in /home/vsts/work/1/s/CHANGELOG/6.0.md.https://msdn.microsoft.com/powershell/reference/6/about/about_jobs should work

Failed to complete request to "https://msdn.microsoft.com/powershell/reference/6/about/about_jobs". Response status code does not indicate success: 404 (Not Found).
at <ScriptBlock>, /home/vsts/work/1/s/test/common/markdown/markdown-link.tests.ps1: line 119
119:                                     throw "Failed to complete request to `"$url`". $($_.Exception.Message)"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be addressed by #11653

@daxian-dbw
Copy link
Member Author

@adityapatwardhan Can you please merge this PR? Thanks!

@ghost
Copy link
ghost commented Mar 26, 2020

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0