Re: Any resolution for MySqlDbType.Datetime?
I think it's a bug (IMHO data type handling is not so good in this new release).
Try this:
in datareader.cs search for this lines
---
// if the column is a date/time, then we return a MySqlDateTime
// so .ToString() will print '0000-00-00' correctly
if (val is MySqlDateTime) return val;
----
and replace the 'return val;' with
---
{
if (((MySqlDateTime) val).IsNull)
return DBNull.Value;
else
return ((MySqlDateTime) val).GetDateTime();
}
----
Subject
Written By
Posted
November 18, 2004 08:20AM
November 18, 2004 08:32AM
November 18, 2004 10:37AM
November 18, 2004 02:43PM
November 19, 2004 06:51AM
November 29, 2004 10:14AM
November 29, 2004 10:17AM
November 29, 2004 11:04AM
November 29, 2004 07:40PM
November 30, 2004 11:07AM
December 03, 2004 04:42PM
Re: Any resolution for MySqlDbType.Datetime?
December 09, 2004 02:43PM
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.