Null DateTime
I had been using the ByteFx predecessor to the official MySql .NET Connector. I typically use a command object and mysqlparameters to pass values for insert and update queries. In some cases I need to pass a null value for a datetime.
With the older version I could construct a MySqlParameter as a MySqlDbType.Datetime with a NULL value and this worked great. However, with the "official" release I am now unable to pass a NULL value as a MySqlDbType.Datetime, the following error is thrown:
Only DateTime objects can be serialized by MySqlDateTime
How would you recommend I pass null datetime's as parameters or is there an alternate technique? Should I just include any datetimes inline in the SQL command? I think this is what I am going to need to do. This is quite frustrating.
Subject
Written By
Posted
Null DateTime
February 26, 2005 10:22PM
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.