[Mono-bugs] [Bug 56810][Cri] New - ReadXML would fail with null values and auto increment
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 11 Apr 2004 04:32:00 -0400 (EDT)
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 julie@magenet.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56810
--- shadow/56810 2004-04-11 04:32:00.000000000 -0400
+++ shadow/56810.tmp.3958 2004-04-11 04:32:00.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 56810
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: julie@MageNet.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ReadXML would fail with null values and auto increment
+
+in System.Data/DataRow.cs
+
+function private object SetColumnValue (object v, int index)
+
+else if(col.AutoIncrement == true)
+ {
+ newval = this [index];
+ }
+
+should be
+
+else if(col.AutoIncrement == true)
+ {
+ newval = this [index - 1];
+ }