What changed with MySqlDbType.Datetime?
Posted by: Chris Cline
Date: November 18, 2004 08:20AM

Did you change the MySqlDbType.Datetime to MySql.Data.Types.MySqlDateTime?

I am getting an error when calling Adapter.Fill() when I didn't use too.

An unhandled exception of type 'System.ArgumentException' occurred in system.data.dll

Additional information: System.InvalidCastException: Specified cast is not valid.
at System.Convert.ToDateTime(Object value)
at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
at System.Data.DataColumn.set_Item(Int32 record, Object

Which of the 2 Type are the correct data type for the command paremeters if the column type is DateTime?


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.