Description:
MySqlParameter does not use the ADO.NET defaults required by DbParameter. ParameterName should default to an empty string, and SourceVersion should default to DataRowVersion.Current. The current Connector/NET defaults differ. This was found by pengdows.AdoNetApiTest.conformance.
How to repeat:
1. Create a new MySqlParameter without assigning ParameterName or SourceVersion.
2. Read parameter.ParameterName and parameter.SourceVersion.
3. Observe that ParameterName is not the empty string and/or SourceVersion is not DataRowVersion.Current.
The conformance regression tests are Parameter.ParameterName_default_is_empty_string, Parameter.Parameter_default_ParameterName_is_empty_string, and Parameter.Parameter_default_SourceVersion_is_Current in pengdows.AdoNetApiTest.conformance.
Suggested fix:
Initialize the parameter name to String.Empty and SourceVersion to DataRowVersion.Current, with regression tests for the documented defaults.