[Mono-bugs] [Bug 68804][Cri] New - Fill method of SqlDataAdapter hangs application

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 26 Oct 2004 10:48:10 -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 dezelin32@fastmail.fm.

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

--- shadow/68804	2004-10-26 10:48:10.000000000 -0400
+++ shadow/68804.tmp.13530	2004-10-26 10:48:10.000000000 -0400
@@ -0,0 +1,95 @@
+Bug#: 68804
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Mono 1.0.2  for Windows
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: Sys.Data.SqlClient
+AssignedTo: rodrigo@novell.com                            
+ReportedBy: dezelin32@fastmail.fm               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Fill method of SqlDataAdapter hangs application
+
+Description of Problem:
+
+Namespace: System.Data.SqlClient
+
+
+Fill method of SqlDataAdapter hangs application when table fields are mix
+of string and Guid
+data type and NULL value occurs in the Guid typed field. It doesn't even
+throw an exception!
+
+
+Steps to reproduce the problem:
+
+This sample reproduces the bug:
+
+using System;
+using System.Data;
+using System.Data.SqlClient;
+
+
+namespace SqlClientBug
+{
+	/// <summary>
+	/// Summary description for Class1.
+	/// </summary>
+	class BuggyClass
+	{
+		/// <summary>
+		/// The main entry point for the application.
+		/// </summary>
+		[STAThread]
+		static void Main(string[] args)
+		{
+			SqlConnection conn = new SqlConnection("Persist Security Info=False;User
+ID=sa;Pwd=;Data Source=demots2;Initial Catalog=Jugodrvo");
+			SqlDataAdapter da= new SqlDataAdapter();
+
+			da.SelectCommand = new SqlCommand();
+			da.SelectCommand.Connection=conn;
+			da.SelectCommand.CommandText+="select * from testMonoView1";
+			DataSet dSet = new DataSet();
+				
+			Console.WriteLine("aaa");
+			try {
+				da.Fill(dSet);
+			}
+			catch(Exception ex) {
+				Console.WriteLine(ex.Message);
+			}
+			Console.WriteLine("SomeSAO.doSomething returning");			
+		}
+	}
+}
+
+
+
+
+Table testMonoView1 structure:
+
+Guid 		Guid		char
+{A12...}	{A12...}	NULL
+{A12...}	NULL		bbbbbb
+
+Actual Results:
+
+Application hangs.
+
+Expected Results:
+
+All table rows.
+
+
+How often does this happen? 
+
+Always
+
+Additional Information: