We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e915b54 commit b5053d1Copy full SHA for b5053d1
1 file changed
pkg/sqlcmd/serverlist.go
@@ -107,7 +107,9 @@ func parseInstances(msg []byte) msdsn.BrowserData {
107
if len(instanceDict) == 0 {
108
break
109
}
110
- // Only add if InstanceName key exists and is non-empty
+ // Deliberate behavior change from go-mssqldb's parseInstances:
111
+ // skip entries with missing or empty InstanceName (e.g. malformed
112
+ // registry data) instead of adding them under an empty key.
113
if instName, ok := instanceDict["InstanceName"]; ok && instName != "" {
114
results[strings.ToUpper(instName)] = instanceDict
115
0 commit comments