Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

DbNull Treatment in PoSh 2 vs. 3

$
0
0

PoSh v3 apparently interprets System.DbNull values differently than PoSh v2.

In v2, this expression returns True: [System.DbNull]::Value -eq $null. In v3, it returns False.

More specifically, in v3 ([System.DbNull]::Value).Length returns 1, whereas in v2 it returns $null.

Has anybody else seen this?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>