When using ConvertTo-Json Powershell appears to return a string, but under the covers it is a PSObject. The update checks for this and converts to the BaseObject before passing to the SQL Provider as a parameter value.
Also, minor fix for adding SqlParameters to the exception object when an exception is thrown.
When using
ConvertTo-Json
Powershell appears to return astring
, but under the covers it is aPSObject
. The update checks for this and converts to theBaseObject
before passing to the SQL Provider as a parameter value.Also, minor fix for adding SqlParameters to the exception object when an exception is thrown.