From 96e56343267beb4e89e3aecb6e0c8e5ea0aff061 Mon Sep 17 00:00:00 2001 From: Umadevi S Date: Wed, 21 Jul 2004 02:58:09 +0000 Subject: [PATCH] 2004-07-21 Umadevi S * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null svn path=/branches/mono-1-0/mcs/; revision=31321 --- mcs/class/System.Data/System.Data.Common/ChangeLog | 7 +++++-- mcs/class/System.Data/System.Data.Common/DbDataRecord.cs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mcs/class/System.Data/System.Data.Common/ChangeLog b/mcs/class/System.Data/System.Data.Common/ChangeLog index 6eab05f5fde..6af8fca9b77 100755 --- a/mcs/class/System.Data/System.Data.Common/ChangeLog +++ b/mcs/class/System.Data/System.Data.Common/ChangeLog @@ -1,8 +1,11 @@ +2004-07-21 Umadevi S + * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null + 2004-07-07 Umadevi S * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the - SetItemForDataRecord method for the DateTimeClass - 2004-06-24 Atsushi Enomoto + SetItemForDataRecord method for the DateTimeClass +2004-06-24 Atsushi Enomoto * DataColumnMappingCollection.cs : fixed typo. * DbDataAdapter.cs : column mappings were not filled. 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) -- 2.25.1