You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Use local scope and indexer syntax in embedded PowerShell scripts
- ConnectDbaInstanceCommand: Use $csb['Data Source'], $csb['User ID'],
$csb['Initial Catalog'] instead of dotted property syntax which
resolves through IDictionary indexer with wrong keyword names
- InvokeDbaQueryCommand: Change all 6 InvokeScript(false) calls to
InvokeScript(true) for local scope, preventing caller variable
overwrites ($db optimization and null leakage)
- Rename $db to $p_db in embedded param lists to avoid scope collisions
Fixes: Azure DataSource keyword error, $db variable optimization error,
New-DbaDatabase null return on Windows
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments