[Mono-dev] [PATCH] SqliteDataReader should handle getting field type for null values
kamil.skalski at gmail.com
Tue Mar 7 17:08:28 EST 2006
> Please do!
> I'm wondering, tho, if wherever the adapter would return null, it should
> return a DBNull instead? Do other data adapters ever return 'null' values?
Your question have a ready answer here
So DataReader should throw an exception on null values being fetched.
The proper way of dealing with it is IsDBNull method, which is used by
MS.NET DataAdapter when it analyse result. GetValue () should probably
just return DBNull.Value, though I didn't test this.
> - Joshua Tauberer
> "Unfortunately, we're having this discussion. It's too bad,
> because guess who listens to the discussion: the enemy."
More information about the Mono-devel-list