Author: suresh
Date: 2005-03-22 06:09:19 -0500 (Tue, 22 Mar 2005)
New Revision: 42097
Modified:
trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
trunk/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
Log:
* RowUpdatedEventArgs.cs: if custom error is not set, throw a
default error.
Modified: trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/ChangeLog 2005-03-22
11:01:33 UTC (rev 42096)
+++ trunk/mcs/class/System.Data/System.Data.Common/ChangeLog 2005-03-22
11:09:19 UTC (rev 42097)
@@ -3,10 +3,12 @@
* DbDataAdapter.cs: Update (): update the rows based on the
UpdateRowSource property. Process further based on the
RowUpdatedEvent handler argument's Status property.
-
Fixes bug #73587. Thanks to [EMAIL PROTECTED] (Ingo Bauersachs) for
bug report and patch.
+ * RowUpdatedEventArgs.cs: if custom error is not set, throw a
+ default error.
+
2005-03-01 Sureshkumar T <[EMAIL PROTECTED]>
* ConnectionStringsSectionHandler.cs: Added. configuration section
Modified: trunk/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
2005-03-22 11:01:33 UTC (rev 42096)
+++ trunk/mcs/class/System.Data/System.Data.Common/RowUpdatedEventArgs.cs
2005-03-22 11:09:19 UTC (rev 42097)
@@ -72,7 +72,11 @@
}
public Exception Errors {
- get { return errors; }
+ get {
+ if (errors == null)
+ errors = new DataException
("RowUpdatedEvent: No additional information is available!");
+ return errors;
+ }
set { errors = value; }
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches