List:Commits« Previous MessageNext Message »
From:rburnett Date:October 18 2006 5:18pm
Subject:Connector/NET commit: r413 - in branches/1.0: TestSuite mysqlclient
View as plain text  
Modified:
   branches/1.0/TestSuite/ConnectionTests.cs
   branches/1.0/mysqlclient/CharSetMap.cs
   branches/1.0/mysqlclient/CompressedStream.cs
Log:
CharSetMap - syntax error for 1.1 fixed
CompressedStream - Added calls to Flush on write calls
ConnectionTests - Added some proper grant calls for non-localhost testing

Modified: branches/1.0/TestSuite/ConnectionTests.cs
===================================================================
--- branches/1.0/TestSuite/ConnectionTests.cs	2006-10-18 14:49:09 UTC (rev 412)
+++ branches/1.0/TestSuite/ConnectionTests.cs	2006-10-18 15:18:07 UTC (rev 413)
@@ -331,6 +331,7 @@
 		public void ConnectWithQuotePassword()
 		{
 			execSQL("GRANT ALL ON *.* to 'test'@'localhost' IDENTIFIED BY '\"'");
+			execSQL("GRANT ALL ON *.* to 'test'@'%' IDENTIFIED BY '\"'");
 			MySqlConnection c = new MySqlConnection("server=" + host +
";uid=test;pwd='\"';pooling=false");
 			try 
 			{

Modified: branches/1.0/mysqlclient/CharSetMap.cs
===================================================================
--- branches/1.0/mysqlclient/CharSetMap.cs	2006-10-18 14:49:09 UTC (rev 412)
+++ branches/1.0/mysqlclient/CharSetMap.cs	2006-10-18 15:18:07 UTC (rev 413)
@@ -50,7 +50,7 @@
 
 		public static CharacterSet GetChararcterSet(DBVersion version, string CharSetName)
 		{
-			CharacterSet cs = mapping[CharSetName];
+			CharacterSet cs = (CharacterSet)mapping[CharSetName];
 			if (cs == null)
 				throw new MySqlException("Character set '" + CharSetName + "' is not supported");
 			return cs;
@@ -88,7 +88,7 @@
 #if NET20
 			mapping = new Dictionary<string, CharacterSet>();
 #else
-         mapping = new Hashtable()
+			mapping = new Hashtable();
 #endif
 
 			mapping.Add("latin1", new CharacterSet("latin1", 1));

Modified: branches/1.0/mysqlclient/CompressedStream.cs
===================================================================
--- branches/1.0/mysqlclient/CompressedStream.cs	2006-10-18 14:49:09 UTC (rev 412)
+++ branches/1.0/mysqlclient/CompressedStream.cs	2006-10-18 15:18:07 UTC (rev 413)
@@ -232,11 +232,13 @@
 		public override void WriteByte(byte value)
 		{
 			cache.WriteByte(value);
+			Flush();
 		}
 
 		public override void Write(byte[] buffer, int offset, int count)
 		{
             cache.Write(buffer, offset, count);
+			Flush();
 		}
 
 		public override long Seek(long offset, SeekOrigin origin)

Thread
Connector/NET commit: r413 - in branches/1.0: TestSuite mysqlclientrburnett18 Oct