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

93 строки
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 60037][Min] New - SqlCommand.ExecuteNonQuery behaves differently than MS SqlCommand
</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="017226.html">
<LINK REL="Next" HREF="017228.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 60037][Min] New - SqlCommand.ExecuteNonQuery behaves differently than MS SqlCommand
</H1>
<B>bugzilla-daemon@bugzilla.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
TITLE="[Mono-bugs] [Bug 60037][Min] New - SqlCommand.ExecuteNonQuery behaves differently than MS SqlCommand">bugzilla-daemon@bugzilla.ximian.com
</A><BR>
<I>Fri, 11 Jun 2004 11:57:11 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="017226.html">[Mono-bugs] [Bug 60034][Nor] New - Subsequent calls to SqlTransaction.Rollback() throws InvalidOperationException
</A></li>
<LI> Next message: <A HREF="017228.html">[Mono-bugs] [Bug 60038][Nor] New - NullReferenceException when passing null to SqlConnection or OracleConnection
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17227">[ date ]</a>
<a href="thread.html#17227">[ thread ]</a>
<a href="subject.html#17227">[ subject ]</a>
<a href="author.html#17227">[ 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:cmyers@austin.rr.com.">cmyers@austin.rr.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60037">http://bugzilla.ximian.com/show_bug.cgi?id=60037</A>
--- shadow/60037 2004-06-11 11:57:11.000000000 -0400
+++ shadow/60037.tmp.8488 2004-06-11 11:57:11.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 60037
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: Windows XP SP1
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Sys.Data.SqlClient
+AssignedTo: <A HREF="mailto:rodrigo@novell.com">rodrigo@novell.com</A>
+ReportedBy: <A HREF="mailto:cmyers@austin.rr.com">cmyers@austin.rr.com</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SqlCommand.ExecuteNonQuery behaves differently than MS SqlCommand
+
+Description of Problem:
+If you execute a SELECT statement through an ExecuteNonQuery (I know, &quot;why
+would you do that&quot;, but humor me),
+on MS .NET, the resultant int32 value for rows affected will always be -1,
+regardless of how many results there were.
+
+However, in Mono, the rows affected is the number of rows returned by the
+select query.
+
+While I actually prefer how Mono does it, it's inconsistent with MS.NET
+SqlCommand, so you may want to change this.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="017226.html">[Mono-bugs] [Bug 60034][Nor] New - Subsequent calls to SqlTransaction.Rollback() throws InvalidOperationException
</A></li>
<LI> Next message: <A HREF="017228.html">[Mono-bugs] [Bug 60038][Nor] New - NullReferenceException when passing null to SqlConnection or OracleConnection
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17227">[ date ]</a>
<a href="thread.html#17227">[ thread ]</a>
<a href="subject.html#17227">[ subject ]</a>
<a href="author.html#17227">[ author ]</a>
</LI>
</UL>
</body></html>