Modified:
branches/5.1/Driver/Source/PreparableStatement.cs
branches/5.1/Driver/Source/command.cs
Log:
a couple more fxcop changes
Modified: branches/5.1/Driver/Source/PreparableStatement.cs
===================================================================
--- branches/5.1/Driver/Source/PreparableStatement.cs 2007-11-05 22:21:01 UTC (rev 1072)
+++ branches/5.1/Driver/Source/PreparableStatement.cs 2007-11-05 22:27:03 UTC (rev 1073)
@@ -31,14 +31,11 @@
{
private MySqlField[] paramList;
private int executionCount;
- private int pageSize;
private int statementId;
public PreparableStatement(MySqlCommand command, string text)
: base(command, text)
{
- pageSize = 0;
- statementId = 0;
}
#region Properties
@@ -116,7 +113,7 @@
// start constructing our packet
stream.WriteInteger(statementId, 4);
- stream.WriteByte((byte) pageSize); // flags; always 0 for 4.1
+ stream.WriteByte((byte) 0); // flags; always 0 for 4.1
stream.WriteInteger(1, 4); // interation count; 1 for 4.1
stream.Write(nullMapBytes);
//if (parameters != null && parameters.Count > 0)
Modified: branches/5.1/Driver/Source/command.cs
===================================================================
--- branches/5.1/Driver/Source/command.cs 2007-11-05 22:21:01 UTC (rev 1072)
+++ branches/5.1/Driver/Source/command.cs 2007-11-05 22:27:03 UTC (rev 1073)
@@ -523,7 +523,7 @@
internal delegate void AsyncDelegate(int type, CommandBehavior behavior);
internal Exception thrownException;
- private string TrimSemicolons(string sql)
+ private static string TrimSemicolons(string sql)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder(sql);
int start = 0;
| Thread |
|---|
| • Connector/NET commit: r1073 - branches/5.1/Driver/Source | rburnett | 5 Nov |