diff options
author | Umadevi S <uma@mono-cvs.ximian.com> | 2004-07-07 13:42:55 +0400 |
---|---|---|
committer | Umadevi S <uma@mono-cvs.ximian.com> | 2004-07-07 13:42:55 +0400 |
commit | 4798ceff9f85daefabf6b0a0dc749aec27c3d495 (patch) | |
tree | 9d73fece75166c7a5ddb86e01ccd1580ffe0ad20 | |
parent | ef28045d3786f100a869c42743d51ebcd8d2e2c1 (diff) |
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
(patch submitted by Aleksey Demakov)
svn path=/branches/mono-1-0/mcs/; revision=30830
-rwxr-xr-x | mcs/class/System.Data/System.Data.Common/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DataContainer.cs | 4 |
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 0db883a625e..6eab05f5fde 100755 --- a/mcs/class/System.Data/System.Data.Common/ChangeLog +++ b/mcs/class/System.Data/System.Data.Common/ChangeLog @@ -1,4 +1,7 @@ -2004-06-24 Atsushi Enomoto <atsushi@ximian.com> +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> * DataColumnMappingCollection.cs : fixed typo. * DbDataAdapter.cs : column mappings were not filled. diff --git a/mcs/class/System.Data/System.Data.Common/DataContainer.cs b/mcs/class/System.Data/System.Data.Common/DataContainer.cs index 5b627d7d8ba..de0d64bc598 100644 --- a/mcs/class/System.Data/System.Data.Common/DataContainer.cs +++ b/mcs/class/System.Data/System.Data.Common/DataContainer.cs @@ -1098,8 +1098,8 @@ namespace System.Data.Common { // if exception thrown, it should be caught // in the caller method - base.SetValue(index,record.GetDateTime(field)); - base.SetItemFromDataRecord(index,record,field); + if (!CheckAndSetNull(index,record,field)) + base.SetValue(index,record.GetDateTime(field)); } internal override int CompareValues(int index1, int index2) |