Author: kostat
Date: 2007-01-16 09:54:14 -0500 (Tue, 16 Jan 2007)
New Revision: 71137

Modified:
   
branches/mainsoft/gh20preview2/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
Log:
merge -r 71003:71004

Modified: 
branches/mainsoft/gh20preview2/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
===================================================================
--- 
branches/mainsoft/gh20preview2/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
        2007-01-16 14:52:55 UTC (rev 71136)
+++ 
branches/mainsoft/gh20preview2/mcs/class/System.Data/System.Data.SqlClient.jvm/SqlCommand.cs
        2007-01-16 14:54:14 UTC (rev 71137)
@@ -91,7 +91,7 @@
                                        return commandText;
 
                                string trimmedCommandText = commandText.TrimEnd 
();
-                               if (commandText [0] != '[' && 
trimmedCommandText [trimmedCommandText.Length - 1] != ')')
+                               if (commandText [0] != '[' && 
trimmedCommandText.Length > 0 && trimmedCommandText [trimmedCommandText.Length 
- 1] != ')')
                                        commandText = String.Concat ("[", 
commandText, "]");
 
                                return commandText;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to