[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.


--- 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 Details: 
+Status: NEW   
+Priority: Critical
+Component: Sys.Data.SqlClient
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: flashfm at yandex.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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? 
+Additional Information:
+Mono Windows XP SP2.

More information about the mono-bugs mailing list