Bug #68924 | Null Items cause further data not to be returned | ||
---|---|---|---|
Submitted: | 10 Apr 2013 21:40 | Modified: | 27 May 2013 20:52 |
Reporter: | O'Brien Donal | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.6.4.0 | OS: | Windows (Win 7 Pro, Vis Studio 2012) |
Assigned to: | Roberto Ezequiel Garcia Ballesteros | CPU Architecture: | Any |
[10 Apr 2013 21:40]
O'Brien Donal
[27 May 2013 20:52]
Roberto Ezequiel Garcia Ballesteros
Hi, I changed the status to "Not a bug" since the behavior is as designed. When you try to read a database null value, it throws an System.Data.SqlTypes.SqlNullValueException. I suggest to use MySqlDataReader.IsDBNull() to check for null values before use GetString(). You can find more information about this in the following link (please check Remark section): http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(SYSTEM.DATA.SQLCL... The library link is for SqlDataReader but it works the same way in MySqlDataReader. Regards.