MySqlDataReader.IsDbNull
Posted by: Neil Ramsbottom
Date: January 11, 2007 05:45AM

Is there any way to test for null on a field that holds an invalid .NET date (e.g. 0000-00-00 00:00:00) without using the 'Allow Zero Datetime=True' connection string parameter?

I ask because the IsDbNull method of the MySqlDataReader type uses the GetValue method, which (without the connection string parameter) causes a MySqlConversionException when I then call the IsDbNull method.

Options: ReplyQuote


Subject
Written By
Posted
MySqlDataReader.IsDbNull
January 11, 2007 05:45AM


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.