| Bug #51549 | Empty value for PWD is not recognized as synonim of PASSWORD | ||
|---|---|---|---|
| Submitted: | 26 Feb 2010 12:26 | Modified: | 26 Feb 2010 17:09 |
| Reporter: | Bogdan Degtyariov | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | Connector / NET | Severity: | S3 (Non-critical) |
| Version: | 6.2.2 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | pwd | ||
[26 Feb 2010 17:09]
Reggie Burnett
This is a duplicate of 51209 I think.

Description: Opening a connection with empty password results in the exception: "The given key was not present in the dictionary". It only happens when I use PWD instead of PASSWORD option. Nevertheless, PWD is a legal option and it has to work in the same way as PASSWORD. The exception occurs disregard correct or incorrect credentials. How to repeat: private void button2_Click(object sender, EventArgs e) { MySqlConnection con = new MySqlConnection(); try { con.ConnectionString = "server=xxxx;database=xxxxx;user id=xxxxx;PWD=;"; con.Open(); MessageBox.Show("Done!"); con.Close(); } catch (Exception ex) { string error = ex.Message.ToString(); error+= ex.StackTrace; MessageBox.Show(error); } }