Bug #108970 | MySqlConnectionStringBuilder ContainsKey method gives wrong result | ||
---|---|---|---|
Submitted: | 2 Nov 2022 13:30 | Modified: | 15 Nov 2022 7:28 |
Reporter: | Eric Finch | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | OS: | Windows | |
Assigned to: | CPU Architecture: | Any |
[2 Nov 2022 13:30]
Eric Finch
[10 Nov 2022 12:45]
MySQL Verification Team
Hello Eric Finch, Thank you for the bug report. Could you please provide repeatable test case (sample project, etc. - please make it as private if you prefer) to confirm this issue at our end? Regards, Ashwini Patil
[10 Nov 2022 13:29]
Eric Finch
Example code: const string ConnectionKey = "AllowUserVariables"; var builder = new localMySqlClient.MySqlConnectionStringBuilder(); if (builder.Keys.Cast<string>().Any(k => string.Equals(k, ConnectionKey, System.StringComparison.OrdinalIgnoreCase))) { // this will be false throw new System.Exception("Did not expect key in Keys collection"); } if (builder.ContainsKey(ConnectionKey)) { // this will be true throw new System.Exception("Did not expect to find key with ContainsKey."); }
[15 Nov 2022 7:28]
MySQL Verification Team
Hello Eric Finch, Thank you for the details. Verified as described. Regards, Ashwini Patil