[Mono-bugs] [Bug 51263][Maj] New - Executing arbitrary SELECT statements fail against SQL Server

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 Nov 2003 09:52:13 -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 joergr@voelcker.com.


--- shadow/51263	2003-11-21 09:52:13.000000000 -0500
+++ shadow/51263.tmp.26103	2003-11-21 09:52:13.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 51263
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: System.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Executing arbitrary SELECT statements fail against SQL Server
+Description of Problem:
+An exception is raised when executing a SELECT statement against SQL Server. 
+Steps to reproduce the problem:
+1. Change connection string in attached sample
+2. Compile 
+3. Run
+Actual Results:
+Exception caught: System.Data.RowNotInTableException: This row has been
+removed from a table and does not have any data.  BeginEdit() will allow
+creation of new data in this row.
+in <0x000d5> System.Data.DataRow:get_Item (int,System.Data.DataRowVersion)
+in <0x00074> System.Data.DataRow:get_Item (string,System.Data.DataRowVersion)
+in <0x00019> System.Data.DataRow:get_Item (string)
+in <0x005fc> System.Data.SqlClient.SqlDataReader:GetSchemaTable ()
+in <0x00050> (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlDataReader:GetSchemaTable ()
+in <0x000dd> System.Data.SqlClient.SqlDataReader:NextResult ()
+in <0x0005d> (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlDataReader:NextResult ()
+in <0x0010d> System.Data.SqlClient.SqlDataReader:.ctor
+in <0x00056> (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlDataReader:.ctor (System.Data.SqlClient.SqlCommand)
+in <0x0009f> System.Data.SqlClient.SqlCommand:ExecuteReader
+in <0x00054> (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlCommand:ExecuteReader (System.Data.CommandBehavior)
+in <0x00016> System.Data.SqlClient.SqlCommand:ExecuteReader ()
+in <0x00050> (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlCommand:ExecuteReader ()
+in <0x00011>
+System.Data.SqlClient.SqlCommand:System.Data.IDbCommand.ExecuteReader ()
+in <0x000d8> Bug.MainClass:Main ()
+Expected Results:
+Read value Hello.
+How often does this happen? 
+Additional Information:
+This seems to be introduced by the changes in DataRow.