BUG: >connector 5.0.2
Posted by: Nick Van Eeckhout
Date: January 07, 2007 04:34PM

Hi,

I don't know where to post bugs i find in the connector so i'll do it here.
Opening a connection with .net 2.0 and mysql.data 5.0.2 ado.net provider on a mysql 4.0.15-nt database doesn't finish when using a valid user and password (the server is not localhost). After using the debug version i've located the exact line where the process halts (or looks like it's doing something for ages).
It happens when disposing (closing) the datareader (datareader.cs) on line 177-178:

// we set the nextResultDone var to true inside NextResult when
// it returns false. This allows us to avoid calling NextResult
// here unnecessarily. Calling NextResult here will work but this
// is just an optimization.
if (!nextResultDone)
while (NextResult()) { }

When commenting the while loop, the connection is established and it works ok.
Diggin a little deeper takes me to line 757 in datareader.cs in function private long GetResultSet() = long fieldCount = driver.ReadResult(ref affectedRowsTemp, ref lastInsertId);
Taking me to NativeDriver.cs, line 441: stream.OpenPacket();
Taking me to MySqlStream.cs, line 176: int b1 = inStream.ReadByte(); (in function LoadPacket).

EDIT: found the bug list and posted the bug there.



Edited 3 time(s). Last edit at 01/07/2007 05:14PM by Nick Van Eeckhout.

Options: ReplyQuote


Subject
Written By
Posted
BUG: >connector 5.0.2
January 07, 2007 04:34PM
January 08, 2007 09:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.