Bug #33344 Connection State Changes to Open Prematurely
Submitted: 18 Dec 2007 20:23 Modified: 9 Jan 2008 1:17
Reporter: Matt Meyer Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:5.0.8.1 OS:Windows (XP)
Assigned to: CPU Architecture:Any
Tags: ConnectionState.Open, State, statechange

[18 Dec 2007 20:23] Matt Meyer
Description:
The Connection State of the MySqlConnection object is changed from Connecting to Open before the connection is open and ready.

How to repeat:
Attach a function to the StateChange event to test if the connection is open, and if so, execute a command against it.  The command will cause an null exception to be thrown from the MySqlField constructor due to the connection object passed being null.
[18 Dec 2007 20:33] Matt Meyer
Code to repeat bug.  Change db credentials as needed

Attachment: MySqlBug.cs (text/plain), 1.23 KiB.

[9 Jan 2008 1:17] Reggie Burnett
This is a duplicate of bug #30964