Re: What changed with MySqlDbType.Datetime?
Posted by: Paul Hyman
Date: November 29, 2004 07:40PM

I was also getting exceptions during the DataAdapter.Fill calls. I made the following change to the MySql Connector code (datareader.cs) and eliminated the problem:

in method GetValue change the line

if (val is MySqlDateTime) return val;

to

if (val is MySqlDateTime) return ((MySqlDateTime)(val)).GetDateTime();

I don't know if this might cause other problems, but for me everthing seems to work fine with this change.

Options: ReplyQuote




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.