#9 IsDBNull(int) support

closed
nobody
None
5
2004-02-26
2004-01-14
Vincent Ma
No

I'm converting my code to use MySqlDriverCS. The
IsDBNull(int) function returns a throw "Operation not
supported".
So I made a little change to in MySQLDataReader.cs file:

//public bool IsDBNull( int i ){ throw new MySQLException
("Operation not supported"); }
public bool IsDBNull( int i )
{
if (this[i] is DBNull)
return true;
else
return false;
}

Could you see any problem doing this?

Best Regards,
Vincent

Discussion

  • Logged In: YES
    user_id=406263

    Yes, you have reason. I forget to do this. You'll see this
    changed in 3.0.13 release.

     
    • status: open --> closed