List:Commits« Previous MessageNext Message »
From:rburnett Date:January 9 2008 9:37pm
Subject:Connector/NET commit: r1142 - branches/5.1/Driver/Source
View as plain text  
Modified:
   branches/5.1/Driver/Source/MySqlStream.cs
   branches/5.1/Driver/Source/NativeDriver.cs
Log:
still a couple of more cleanups

Modified: branches/5.1/Driver/Source/MySqlStream.cs
===================================================================
--- branches/5.1/Driver/Source/MySqlStream.cs	2008-01-09 20:35:05 UTC (rev 1141)
+++ branches/5.1/Driver/Source/MySqlStream.cs	2008-01-09 20:37:41 UTC (rev 1142)
@@ -168,7 +168,7 @@
 				string msg = ReadString();
                 if (msg.StartsWith("#"))
                 {
-                    string stateCode = msg.Substring(1, 5);
+                    msg.Substring(1, 5);  /* state code */
                     msg = msg.Substring(6);
                 }
 				throw new MySqlException(msg, code);

Modified: branches/5.1/Driver/Source/NativeDriver.cs
===================================================================
--- branches/5.1/Driver/Source/NativeDriver.cs	2008-01-09 20:35:05 UTC (rev 1141)
+++ branches/5.1/Driver/Source/NativeDriver.cs	2008-01-09 20:37:41 UTC (rev 1142)
@@ -133,10 +133,10 @@
                 if (stream.HasMoreData)
                 {
                     serverStatus = (ServerStatusFlags) stream.ReadInteger(2);
-                    int warningCount = stream.ReadInteger(2);
+                    stream.ReadInteger(2);  /* warning count */
                     if (stream.HasMoreData)
                     {
-                        string msg = stream.ReadLenString();
+                        stream.ReadLenString();  /* message */
                     }
                 }
             }

Thread
Connector/NET commit: r1142 - branches/5.1/Driver/Sourcerburnett9 Jan