[Mono-bugs] [Bug 63209][Nor] New - Some bugs on the GetSchemaTable method in the SqliteDataReader class.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 17 Aug 2004 07:22:48 -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 tapia@eitig.com.

http://bugzilla.ximian.com/show_bug.cgi?id=63209

--- shadow/63209	2004-08-17 07:22:48.000000000 -0400
+++ shadow/63209.tmp.473	2004-08-17 07:22:48.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 63209
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tapia@eitig.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Some bugs on the GetSchemaTable method in the SqliteDataReader class.
+
+Error 1:
+--------
+
+GetSchemaTable in MS .NET don't need to make a reader.Read() call. But in
+SqliteDataReader, if I write something like this:
+
+IDataReader reader = command.ExecuteReader();
+DataTable dataTable = reader.GetSchemaTable();
+
+the dataTable object is null, and it shouldn't.
+
+Error 2:
+--------
+
+Anyway, I've tryied to call the GetSchemaTable after calling the Read()
+method (only once). This is the result:
+
+Unhandled Exception: System.Data.RowNotInTableException: Cannot perform
+this operation on a row not in the table.
+in <0x000ec> System.Data.DataRow:AcceptChanges ()
+in <0x00b0c> Mono.Data.SqliteClient.SqliteDataReader:GetSchemaTable ()
+
+AcceptChanges is an intern call in GetSchemaTable, so I'm pretty sure it's
+a bug.
+
+Thank you for the great work you are doing with mono :-)
+
+C.