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

Modified: branches/5.1/Driver/Source/NativeDriver.cs
===================================================================
--- branches/5.1/Driver/Source/NativeDriver.cs	2008-01-09 20:31:08 UTC (rev 1140)
+++ branches/5.1/Driver/Source/NativeDriver.cs	2008-01-09 20:35:05 UTC (rev 1141)
@@ -128,8 +128,8 @@
                 if (marker != 0)
                     throw new MySqlException("Out of sync with server", true, null);
 
-                long affectedRows = stream.ReadFieldLength();
-                long lastInsertId = stream.ReadFieldLength();
+                stream.ReadFieldLength(); /* affected rows */
+                stream.ReadFieldLength(); /* last insert id */
                 if (stream.HasMoreData)
                 {
                     serverStatus = (ServerStatusFlags) stream.ReadInteger(2);

Modified: branches/5.1/Driver/Source/command.cs
===================================================================
--- branches/5.1/Driver/Source/command.cs	2008-01-09 20:31:08 UTC (rev 1140)
+++ branches/5.1/Driver/Source/command.cs	2008-01-09 20:35:05 UTC (rev 1141)
@@ -152,7 +152,7 @@
 		public override CommandType CommandType
 		{
 			get { return cmdType; }
-			set { cmdType = value; SyncCommandType(true); }
+			set { cmdType = value; }
 		}
 
 		/// <include file='docs/mysqlcommand.xml' path='docs/IsPrepared/*'/>
@@ -653,11 +653,6 @@
 
 		#region Private Methods
 
-		private void SyncCommandType(bool cmdTypeSet)
-		{
-			int i = (int)CommandType;
-		}
-
 		/*		private ArrayList PrepareSqlBuffers(string sql)
 				{
 					ArrayList buffers = new ArrayList();

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