List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:May 9 2011 7:08pm
Subject:bzr commit into connector-net-6.3 branch (reggie.burnett:980)
View as plain text  
#At file:///C:/Users/Reggie/work/connector-net/6.3/ based on revid:reggie.burnett@stripped

  980 Reggie Burnett	2011-05-09
      fixed my last push to compile on CF

    modified:
      MySql.Data/Provider/Source/StoredProcedure.cs
=== modified file 'MySql.Data/Provider/Source/StoredProcedure.cs'
=== modified file 'MySql.Data/Provider/Source/StoredProcedure.cs'
--- a/MySql.Data/Provider/Source/StoredProcedure.cs	2011-05-09 18:32:56 +0000
+++ b/MySql.Data/Provider/Source/StoredProcedure.cs	2011-05-09 19:08:13 +0000
@@ -194,7 +194,7 @@
 
                 if (command.Connection.Settings.AllowBatch)
                 {
-                    setSql.AppendFormat("{0}{1}", delimiter, sql);
+                    setSql.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", delimiter, sql);
                     delimiter = "; ";
                 }
                 else
@@ -221,7 +221,7 @@
                 string uName = "@" + ParameterPrefix + p.BaseName;
 
                 bool useRealVar = p.Direction == ParameterDirection.Input || serverProvidingOutputParameters;
-                callSql.AppendFormat("{0}{1}", delimiter, useRealVar ? pName : uName);
+                callSql.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", delimiter, useRealVar ? pName : uName);
                 delimiter = ", ";
             }
 
@@ -246,7 +246,7 @@
                 string uName = "@" + ParameterPrefix + p.BaseName;
                 string sql = String.Format("SET {0}={1}", uName, pName);
 
-                outSql.AppendFormat("{0}{1}", delimiter, uName);
+                outSql.AppendFormat(CultureInfo.InvariantCulture, "{0}{1}", delimiter, uName);
                 delimiter = ", ";
             }
 
@@ -292,7 +292,7 @@
             for (int i = 0; i < reader.FieldCount; i++)
             {
                 string fieldName = reader.GetName(i);
-                if (fieldName.Contains(StoredProcedure.ParameterPrefix))
+                if (fieldName.IndexOf(StoredProcedure.ParameterPrefix) != -1)
                     fieldName = fieldName.Remove(0, StoredProcedure.ParameterPrefix.Length + 1);
                 MySqlParameter parameter = command.Parameters.GetParameterFlexible(fieldName, true);
 


Attachment: [text/bzr-bundle] bzr/reggie.burnett@oracle.com-20110509190813-38xl76r2ckdgq0d2.bundle
Thread
bzr commit into connector-net-6.3 branch (reggie.burnett:980) Reggie Burnett9 May