Re: SqlNullValueException in 1.0.8 (MySqlDataReader)
Posted by: Matt
Date: November 01, 2006 11:14AM

I Think this is the desired behavior. Just check for null while reading.

If DataReader.IsDBNull = True Then
Value = ""
Else
Value = DataReader.GetString
End If

You could also check for data types and assign to vars accordingly.

If DataReader.GetDataTypeName = "Int" etc...

Options: ReplyQuote


Subject
Written By
Posted
Re: SqlNullValueException in 1.0.8 (MySqlDataReader)
November 01, 2006 11:14AM


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.