[Mono-bugs] [Bug 76468][Cri] New - Message of RaisError SQL procedure doubles in SqlException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 18 08:20:25 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 flashfm at yandex.ru.

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

--- shadow/76468	2005-10-18 08:20:25.000000000 -0400
+++ shadow/76468.tmp.31185	2005-10-18 08:20:25.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 76468
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: Sys.Data.SqlClient
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: flashfm at yandex.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Message of RaisError SQL procedure doubles in SqlException
+
+Description of Problem:
+
+Calling RaisError SQL procedure from SqlCommand causes SqlException,
+but message of exception will be doubled string of RaisError message.
+
+Steps to reproduce the problem:
+1. Create SqlCommand cmd, set cmd.CommandText = "RaisError('ErrorMsg',16,1)";
+2. run:
+string s;
+try {
+  cmd.ExecuteNonQuery();
+}
+catch(SqlException ex) {
+  s = ex.Message;
+}
+3. Look into s.
+
+Actual Results: S is "ErrorMsg\nErrorMsg".
+Expected Results: S is "ErrorMsg".
+
+How often does this happen? 
+Always
+
+Additional Information:
+Mono 1.1.9.2. Windows XP SP2.


More information about the mono-bugs mailing list