mail-archives/mono-bugs/2005-June/029984.html

115 строки
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 75137][Nor] New - DataSet.Merge() behaviour
different from MS .NET
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075137%5D%5BNor%5D%20New%20-%20DataSet.Merge%28%29%20behaviour%0A%09different%20from%20MS%20.NET&In-Reply-To=bug-75137%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="029983.html">
<LINK REL="Next" HREF="029985.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 75137][Nor] New - DataSet.Merge() behaviour
different from MS .NET</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075137%5D%5BNor%5D%20New%20-%20DataSet.Merge%28%29%20behaviour%0A%09different%20from%20MS%20.NET&In-Reply-To=bug-75137%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 75137][Nor] New - DataSet.Merge() behaviour
different from MS .NET">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Fri Jun 3 07:52:45 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="029983.html">[Mono-bugs] [Bug 75122][Min] Changed - Can't run mod_mono
</A></li>
<LI>Next message: <A HREF="029985.html">[Mono-bugs] [Bug 75137][Nor] Changed - DataSet.Merge() behaviour
different from MS .NET
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29984">[ date ]</a>
<a href="thread.html#29984">[ thread ]</a>
<a href="subject.html#29984">[ subject ]</a>
<a href="author.html#29984">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">george.barbarosie at gmail.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75137">http://bugzilla.ximian.com/show_bug.cgi?id=75137</A>
--- shadow/75137 2005-06-03 07:52:45.000000000 -0400
+++ shadow/75137.tmp.22781 2005-06-03 07:52:45.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75137
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">george.barbarosie at gmail.com</A>
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DataSet.Merge() behaviour different from MS .NET
+
+Merge() on MS .NET differs from Mono Class Library SVN Trunk implemntation
+in a number of ways:
+ * When destination row has DataRowState.Unchanged and source row has
+DataRowState.Modified, destination Original index gets overwritten by Merge
+(actually CopyValuesToRow...), in effect destination DataRowState remains
+unaffected;
+ * When destination row has DataRowState.Original or DataRowState.Modified
+and source row has DataRowState.Added, destination Original index gets
+deleted which is not ok; destination DataRowState gets set to Added.
+ * When destination row has DataRowState.Unchanged and source row has
+DataRowState.Deleted, the Original index gets Disposed alongside the
+Current record, because the code does not check if Original and Current
+point to the same index.
+
+Testcase attachment will follow (zipfile)
+ - test.cs - sample application to hilight all 3 of the above;
+ - expected_results_merge.txt - output of test.cs on MS .NET;
+ - actual_results_merge.txt - output of test.cs on mono with latest svn
+class libraries;
+ - actual_results_merge_patched.txt - output of test.cs on mono with latest
+svn clas libraries after proposed patch has been applied;
+
+Testcase will not run at all without patch from bug#75123 applied first.
+
+Proposed patch will follow too.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="029983.html">[Mono-bugs] [Bug 75122][Min] Changed - Can't run mod_mono
</A></li>
<LI>Next message: <A HREF="029985.html">[Mono-bugs] [Bug 75137][Nor] Changed - DataSet.Merge() behaviour
different from MS .NET
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29984">[ date ]</a>
<a href="thread.html#29984">[ thread ]</a>
<a href="subject.html#29984">[ subject ]</a>
<a href="author.html#29984">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>