Bug #6296 MySqlParameter DbType is Null
Submitted: 28 Oct 2004 2:49 Modified: 28 Oct 2004 19:16
Reporter: Darren Hill Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:1.0.0.22722 OS:Windows (Windows)
Assigned to: Reggie Burnett CPU Architecture:Any

[28 Oct 2004 2:49] Darren Hill
Description:
When instansiating a MySqlParameter, (ie new MySqlParameter()) this default DbType is null and any attempts to set/get the Property results in a null exception.

How to repeat:
IDataParameter p = new MySqlParameter();
p.DbType = System.Data.DbType.String;

Suggested fix:
Make default DbType String.
[28 Oct 2004 19:16] Reggie Burnett
Thank you for taking the time to report a problem.  Unfortunately
you are not using a current version of the product your reported a
problem with -- the problem might already be fixed. Please download
a new version from http://www.mysql.com/downloads/

If you are able to reproduce the bug with one of the latest versions,
please change the version on this bug report to the version you
tested and change the status back to "Open".  Again, thank you for
your continued support of MySQL.

Additional info:

This has been fixed in beta 2.