[Mono-bugs] [Bug 40315][Maj] New - SqlCommand::ExecuteNonQuery always returns 0

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 26 Mar 2003 10:38:19 -0500 (EST)


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 joergr@voelcker.com.

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

--- shadow/40315	Wed Mar 26 10:38:19 2003
+++ shadow/40315.tmp.16812	Wed Mar 26 10:38:19 2003
@@ -0,0 +1,39 @@
+Bug#: 40315
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SqlCommand::ExecuteNonQuery always returns 0
+
+Description of Problem:
+SqlCommand::ExecuteNonQuery always returns 0
+
+Steps to reproduce the problem:
+1. Execute an arbitrary UPDATE statement 
+2. Check return code of ExecuteNonQuery
+
+Actual Results:
+Return value: 0
+
+Expected Results:
+Return value: Affected lines
+
+
+How often does this happen? 
+At every call.
+
+
+Additional Information:
+In the source code of this function the return code is never set to
+anything than 0.