[Mono-bugs] [Bug 40253][Blo] Changed - System.IndexOutOfRangeException when using SqlCommand.ExecuteXmlReader()
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 3 Dec 2003 01:55:11 -0500 (EST)
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 neeeeeep@bigpond.com.
http://bugzilla.ximian.com/show_bug.cgi?id=40253
--- shadow/40253 2003-12-03 01:52:54.000000000 -0500
+++ shadow/40253.tmp.28799 2003-12-03 01:55:11.000000000 -0500
@@ -2,13 +2,13 @@
Product: Mono/Class Libraries
Version: unspecified
OS: Red Hat 8.0
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Blocker
Component: System.Data.SqlClient
AssignedTo: rodrigo@ximian.com
ReportedBy: szunyog@sensenet.hu
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -86,6 +86,22 @@
mono version: 0.23
------- Additional Comments From neeeeeep@bigpond.com 2003-12-03 01:52 -------
Created an attachment (id=6081)
Diff for a fix for the bug
+
+------- Additional Comments From neeeeeep@bigpond.com 2003-12-03 01:55 -------
+Hi all,
+
+It seems that Peek() wouldnīt read from the next buffer when it was at
+the end of the current one, meaning that the IndexOutOfRangeException
+occured. The solution I came up with was to simply fix peek so it
+checks if it is at the end and also to make sure that if Read()
+advances the position past the end of the localBuffer array, it makes
+a call to GetNextBuffer(). The above patch fixes the bug and shouldnīt
+cause any problems. If there are no issues, would someone be so kind
+as to commit it, as I donīt have access.
+
+Thanks!
+
+Chris