Author: suresh
Date: 2005-03-28 05:45:48 -0500 (Mon, 28 Mar 2005)
New Revision: 42305

Modified:
   trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
   trunk/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
Log:
2005-03-28  Sureshkumar T  <[EMAIL PROTECTED]>

        * SqlCommand.cs: Execute: Add a semicolon at the end of
        CommandText. Multiple semicolon's are not being complained.

        fixes bug #74134.



Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-03-28 
10:43:07 UTC (rev 42304)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-03-28 
10:45:48 UTC (rev 42305)
@@ -1,3 +1,10 @@
+2005-03-28  Sureshkumar T  <[EMAIL PROTECTED]>
+
+       * SqlCommand.cs: Execute: Add a semicolon at the end of
+       CommandText. Multiple semicolon's are not being complained.
+
+       fixes bug #74134.
+
 2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * SqlConnection.cs: added a finalizer for correct implementation of the

Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs     
2005-03-28 10:43:07 UTC (rev 42304)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs     
2005-03-28 10:45:48 UTC (rev 42305)
@@ -349,7 +349,7 @@
                                                Connection.Tds.Execute 
(sql2.ToString ());
                                        break;
                                case CommandType.Text:
-                                       string sql = String.Format 
("{0}{1}{2}", sql1.ToString (), CommandText, sql2.ToString ());
+                                       string sql = String.Format 
("{0}{1};{2}", sql1.ToString (), CommandText, sql2.ToString ());
                                        Connection.Tds.Execute (sql, parms, 
CommandTimeout, wantResults);
                                        break;
                                }

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

Reply via email to