Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmcs/class/System.Data/System.Data.Common/ChangeLog5
-rw-r--r--mcs/class/System.Data/System.Data.Common/DataContainer.cs4
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)