diff options
author | Umadevi S <uma@mono-cvs.ximian.com> | 2004-07-21 06:58:09 +0400 |
---|---|---|
committer | Umadevi S <uma@mono-cvs.ximian.com> | 2004-07-21 06:58:09 +0400 |
commit | 96e56343267beb4e89e3aecb6e0c8e5ea0aff061 (patch) | |
tree | 9bb2aef12268355fe34d4bb0b07536feb514c21d | |
parent | 0d0f9b0e8c8169cc86e73d55a414618f020b8d93 (diff) |
2004-07-21 Umadevi S <sumadevi@novell.com>
* DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null
svn path=/branches/mono-1-0/mcs/; revision=31321
-rwxr-xr-x | mcs/class/System.Data/System.Data.Common/ChangeLog | 7 | ||||
-rw-r--r-- | 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 <sumadevi@novell.com> + * DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null + 2004-07-07 Umadevi S <sumadevi@novell.com> * DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the - SetItemForDataRecord method for the DateTimeClass - 2004-06-24 Atsushi Enomoto <atsushi@ximian.com> + SetItemForDataRecord method for the DateTimeClass +2004-06-24 Atsushi Enomoto <atsushi@ximian.com> * 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) |