diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbDataRecord.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbDataRecord.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbDataRecord.cs b/mcs/class/System.Data/System.Data.Common/DbDataRecord.cs index 0a6fa0e868d..69a2013f64d 100644 --- a/mcs/class/System.Data/System.Data.Common/DbDataRecord.cs +++ b/mcs/class/System.Data/System.Data.Common/DbDataRecord.cs @@ -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) |