[Mono-bugs] [Bug 76437][Nor] New - Problem with Oracle TimeStamp

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Oct 14 09:38:51 EDT 2005


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 informatique.internet at fiducial.fr.

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

--- shadow/76437	2005-10-14 09:38:51.000000000 -0400
+++ shadow/76437.tmp.20245	2005-10-14 09:38:51.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 76437
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problem with Oracle TimeStamp
+
+Description of Problem:
+When i try to fill a dataset with TimeStamp's data with the mono oracle
+client, i get a 
+*** glibc detected *** free(): invalid pointer: 0x0833c364 ***
+and the app crashes (if mono is compiled with nptl or the warning is just
+show if mono is compiled without ntpl)
+
+Steps to reproduce the problem:
+try to run this code
+
+DateTime madate=DateTime.Now;
+OracleCommand cmd=new OracleCommand();
+// Writing a date into a table
+cmd.Connection=new OracleConnection(cnx);
+cmd.CommandText="DELETE FROM essai";
+cmd.Connection.Open();
+cmd.ExecuteNonQuery();
+cmd.Connection.Close();
+cmd.CommandText="INSERT INTO essai (datetime) VALUES (:datetime)";
+cmd.Parameters.Clear();
+cmd.Parameters.Add(":datetime",OracleType.Timestamp).Value=madate;
+cmd.Connection.Open();
+cmd.ExecuteNonQuery();
+cmd.Connection.Close();
+cmd.CommandText="SELECT datetime FROM essai";
+OracleDataAdapter dta=new OracleDataAdapter(cmd);
+DataSet ds = new DataSet();
+dta.Fill(ds,"TABLE");
+Console.WriteLine("OK");
+foreach(DataRow row in ds.Tables["TABLE"].Rows)
+{
+	DateTime mydate=(DateTime)row["DATETIME"];
+	Console.WriteLine(mydate);
+	Console.WriteLine("ms :"+mydate.Millisecond);
+}
+
+
+Actual Results:
+OK
+*** glibc detected *** free(): invalid pointer: 0x0833c364 ***
+
+
+Expected Results:
+The correct date
+
+How often does this happen? 
+Always
+
+Additional Information:
+it works well on m$.net


More information about the mono-bugs mailing list