FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert the PRs that made `DBNull.Value` and `NullString.Value` treated as `$null` by daxian-dbw · Pull Request #11648 · PowerShell/PowerShell · GitHub

Revert the PRs that made DBNull.Value and NullString.Value treated as $null - #11648

Merged
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
daxian-dbw:revert
Jan 29, 2020
Merged

Revert the PRs that made DBNull.Value and NullString.Value treated as $null#11648
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
daxian-dbw:revert

Conversation

Dongbo Wang (daxian-dbw) commented Jan 21, 2020
edited
Loading

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
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.

@@ -593,7 +593,9 @@ public static PSDataCollection<PSObject> GetPSDataCollection(object inputValue)
/// <param name="second">Object to compare first to.</param>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Dongbo Wang (@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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This will be addressed by #11653

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) Can you please merge this PR? Thanks!

Copy link
Copy Markdown

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

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL