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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
