mail-archives/mono-bugs/2004-June/017177.html

131 строка
4.2 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:03:35 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 59946][Blo] New - Unexpected Exception in DbDataAdapter.Update(DataTable)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="017176.html">
<LINK REL="Next" HREF="017178.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 59946][Blo] New - Unexpected Exception in DbDataAdapter.Update(DataTable)
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 59946][Blo] New - Unexpected Exception in DbDataAdapter.Update(DataTable)">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Thu, 10 Jun 2004 10:36:52 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017176.html">[Mono-bugs] [Bug 58547][Nor] Changed - MONO Beta 1 Bug: XSP very intermitten when remotely accessed
</A></li>
<LI> Next message: <A HREF="017178.html">[Mono-bugs] [Bug 59948][Blo] New - SqlDataAdapter.FillSchema on SQLServer 2000
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17177">[ date ]</a>
<a href="thread.html#17177">[ thread ]</a>
<a href="subject.html#17177">[ subject ]</a>
<a href="author.html#17177">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:uballestrazzi@igconsulting.it.">uballestrazzi@igconsulting.it.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=59946">http://bugzilla.ximian.com/show_bug.cgi?id=59946</A>
--- shadow/59946 2004-06-10 10:36:52.000000000 -0400
+++ shadow/59946.tmp.17179 2004-06-10 10:36:52.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 59946
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity: 080 Two weeks
+Priority: Blocker
+Component: Sys.Data.SqlClient
+AssignedTo: <A HREF="mailto:rodrigo@novell.com">rodrigo@novell.com</A>
+ReportedBy: <A HREF="mailto:uballestrazzi@igconsulting.it">uballestrazzi@igconsulting.it</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Unexpected Exception in DbDataAdapter.Update(DataTable)
+
+Description of Problem:
+
+An exception is raised in
+DbDataAdapter.Update(DataTable)
+it's raised immediatly because TableMappings does not contain the
+specified datatable. This is not the standard behaviour.
+
+Steps to reproduce the problem:
+
+Access a SQL Server then try to update using DA.Update.
+
+This is the sample:
+
+SqlConnection CN = new SqlConnection
+(@&quot;Server=Hercules\Archivist;Database=TestLinux;User
+ID=TestLinux;Password=dacambiare;Trusted_Connection=False&quot;);
+CN.Open();
+
+DataTable tbl = new DataTable();
+
+SqlDataAdapter DA = null;
+
+DA = new SqlDataAdapter(&quot;Select * from TestTable&quot;, CN);
+DA.Fill(tbl);
+
+SqlCommandBuilder SQLCB = new SqlCommandBuilder(DA);
+
+DataRow Row = tbl.NewRow();
+
+Row[&quot;Number&quot;] = 25;
+Row[&quot;Text&quot;] = &quot;A simple text&quot;;
+
+tbl.Rows.Add(Row);
+
+DA.Update(tbl);
+
+
+
+
+Actual Results:
+Exception
+
+Expected Results:
+It should work
+
+How often does this happen?
+Always
+
+Additional Information:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017176.html">[Mono-bugs] [Bug 58547][Nor] Changed - MONO Beta 1 Bug: XSP very intermitten when remotely accessed
</A></li>
<LI> Next message: <A HREF="017178.html">[Mono-bugs] [Bug 59948][Blo] New - SqlDataAdapter.FillSchema on SQLServer 2000
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17177">[ date ]</a>
<a href="thread.html#17177">[ thread ]</a>
<a href="subject.html#17177">[ subject ]</a>
<a href="author.html#17177">[ author ]</a>
</LI>
</UL>
</body></html>