2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.Data / System.Data.Common / DbDataRecord.cs
index 0a6fa0e868d037cbbf515baef92b8d4b014e7eba..69a2013f64d69937f29fd4e327334ff983c2f3ef 100644 (file)
@@ -340,7 +340,7 @@ namespace System.Data.Common {
 
                public bool IsDBNull (int i)
                {
-                       return GetValue (i) == null;
+                       return GetValue (i) == DBNull.Value;
                }
 #if NET_2_0
                public virtual bool IsSetAsDefault (int i)